[1m[36m (9.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (6.7ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (8.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.6ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('0')
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[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 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
Completed 500 Internal Server Error in 7ms (Views: 7.0ms | ActiveRecord: 6.6ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 19ms (ActiveRecord: 9.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-07-20 15:46:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
Completed 500 Internal Server Error in 8ms (ActiveRecord: 6.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 2016-07-20 15:46:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 3ms (ActiveRecord: 1.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-07-20 15:46:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.0ms)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (3.0ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (8.4ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('0')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
-----------------------------------------------------------------
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 26ms (Views: 5.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
Completed 500 Internal Server Error in 27ms (Views: 5.5ms | ActiveRecord: 1.8ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:36 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 9ms (ActiveRecord: 1.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-07-20 15:46:36 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.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 2016-07-20 15:46:36 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:36 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-07-20 15:46:36 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:36 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:36 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-07-20 15:46:36 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.1ms)
[1m[36mActiveRecord::SchemaMigration Load (19.6ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (17.9ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (26.3ms)[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 (16.8ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.2ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (14.9ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (8.5ms)[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 (11.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (8.1ms)[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 (12.4ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (6.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 (9.6ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (11.5ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (6.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 (9.5ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.9ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (9.4ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (9.8ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.2ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (7.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 (11.4ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (11.8ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (14.1ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (6.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 (13.8ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (11.8ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (14.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 (9.3ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (10.2ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (7.5ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (10.1ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (8.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (10.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
-----------------------------------------------------------------
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 33ms (Views: 19.1ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 60ms (Views: 0.3ms | ActiveRecord: 19.5ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '531bc3fe5b45dbc52d2977b61831879e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-02 15:23:55')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '531bc3fe5b45dbc52d2977b61831879e', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-02 15:23:55')[0m
[1m[35m (5.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 1\n', 1, 'BorrowDirect', 'bd_request_status', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Redirected to http://test.host/resolve?umlaut.request_id=1&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-02T11%3A23%3A55-04%3A00&ctx_id=&ctx_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: 21.2ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fbd8861a87d61de2732023891a79fb5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-02 15:23:55')
[1m[36m (9.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '8fbd8861a87d61de2732023891a79fb5', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-02 15:23:55')[0m
[1m[35m (1.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'BorrowDirect', 'bd_request_prompt', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-02 15:23:55')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-02T11%3A23%3A55-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21ecbb7b6e47f5b8850c19a93b69c462' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-02 15:23:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-02 15:23:55')[0m
[1m[35m (8.9ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.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', '21ecbb7b6e47f5b8850c19a93b69c462', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-02 15:23:55', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_status', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-02T11%3A23%3A55-04%3A00&ctx_id=&ctx_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: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 42ms (ActiveRecord: 22.1ms)
[1m[35mDispatchedService Load (1.0ms)[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[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-02 15:23:55' WHERE `dispatched_services`.`id` = 1
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (6.2ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1fa9a140ac6bbad998616623c09c264' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-02 15:23:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c1fa9a140ac6bbad998616623c09c264', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-02 15:23:55', '2016-08-02 15:23:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-02 15:23:55')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://example.org
Completed 302 Found in 46ms (ActiveRecord: 4.6ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5dc969cadb2950808f96f77d3a99294f' 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 (0.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 (1.2ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55')
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-02 15:23:55' WHERE `dispatched_services`.`id` = 2[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-02 15:23:55')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-02 15:23:55')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '5dc969cadb2950808f96f77d3a99294f', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5a0b0f0c796361e56bfb8cafcd963ee' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-02 15:23:55')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b5a0b0f0c796361e56bfb8cafcd963ee', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-02 15:23:55', '2016-08-02 15:23:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 2.1ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9aa552fe413ad09447104373914646a8' 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 (0.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 (1.1ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-02 15:23:55' WHERE `dispatched_services`.`id` = 3
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-02 15:23:55')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-02 15:23:55')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', '9aa552fe413ad09447104373914646a8', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Redirected to http://test.host/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=2016-08-02T11%3A23%3A55-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7d59d5ad2b42e65414999b8171a831e5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-02 15:23:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 8, '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7d59d5ad2b42e65414999b8171a831e5', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 8, '0.0.0.0', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '061aa0c6ebba7594bbfab81c165eee3e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-02 15:23:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '061aa0c6ebba7594bbfab81c165eee3e', '1f2487b5ab29a0f58587335258d7f8e0', 9, '0.0.0.0', '2016-08-02 15:23:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '87f9a5d9d4726130b0537ba389a9cb12' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '87f9a5d9d4726130b0537ba389a9cb12', '1f2487b5ab29a0f58587335258d7f8e0', 10, '0.0.0.0', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '58e342adb3d98339493206f1f1952040' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-02 15:23:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 11, '2016-08-02 15:23:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '58e342adb3d98339493206f1f1952040', '9902a1d22a141a826ae31b1c83cb928c', 11, '0.0.0.0', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-02 15:23:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-02 11:23:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c47decc766bb24ae134368ac292db812' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-02 15:23:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-02 15:23:55')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'c47decc766bb24ae134368ac292db812', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-02 15:23:55')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 12, '2016-08-02 15:23:55', '2016-08-02 15:23:55')[0m
[1m[35m (6.2ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (6.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-02 15:23:55')[0m
[1m[35m (4.9ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.3ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-02 15:23:55' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.7ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (16.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (58.4ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (24.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 2862ms (Views: 2750.7ms | ActiveRecord: 43.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-02 11:23:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5f4943320a9966cec83d8e111a6b6b5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-02 15:23:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 13, '2016-08-02 15:23:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 13, '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 13, '2016-08-02 15:23:58')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd5f4943320a9966cec83d8e111a6b6b5', 'a03fb1fb17f24f5ea845bf6c4450490b', 13, '127.0.0.1', '2016-08-02 15:23:58')[0m
[1m[35m (5.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-02 15:23:58', '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, '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', '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-02 15:23:58' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 65ms (Views: 14.9ms | ActiveRecord: 18.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 2016-08-02 11:23:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7bb99710ec3e0ab9d2674459c2e5798a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-02 15:23:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 14, '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 14, '2016-08-02 15:23:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 14, '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7bb99710ec3e0ab9d2674459c2e5798a', 'bc13b80c2923ce2cbe0c8347141587a7', 14, '127.0.0.1', '2016-08-02 15:23:58')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-02 15:23:58', '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-02 15:23:58' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mReferent Load (0.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 41ms (Views: 12.5ms | ActiveRecord: 5.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd4fce62bad7d26f031ac0e468fc19e6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 15, '2016-08-02 15:23:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 15, '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 15, '2016-08-02 15:23:58')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'dd4fce62bad7d26f031ac0e468fc19e6', '318e542032e1812e600e07efbdb1dfcc', 15, '0.0.0.0', '2016-08-02 15:23:58')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 15, '2016-08-02 15:23:58', '2016-08-02 15:23:58')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=15" for 127.0.0.1 at 2016-08-02 11:23:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"15"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.2ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (102.1ms)[0m COMMIT
Completed 200 OK in 125ms (Views: 12.9ms | ActiveRecord: 105.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-02 11:23:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f594430d41e85794d047052e6d8e8da' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-02 15:23:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-02 15:23:58')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7f594430d41e85794d047052e6d8e8da', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-02 15:23:58', '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-02 15:23:58' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 48ms (Views: 16.1ms | ActiveRecord: 7.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-02 11:23:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '726311b80922471ca9ed6716ee5b5000' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-02 15:23:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 17, '2016-08-02 15:23:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', '726311b80922471ca9ed6716ee5b5000', '9902a1d22a141a826ae31b1c83cb928c', 17, '127.0.0.1', '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-02 15:23:58', '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-02 15:23:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-02 15:23:58' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mReferent Load (1.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 50ms (Views: 15.6ms | ActiveRecord: 7.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-02 11:23:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37ef54274ec3b1e812def3e902b774e4' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-02 15:23:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '37ef54274ec3b1e812def3e902b774e4', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-02 15:23:58', '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-02 15:23:58')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-02 15:23:58' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 47ms (Views: 15.2ms | ActiveRecord: 7.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-02 11:23:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6db81d2794f4a1104c709ec2b31bc54' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'd6db81d2794f4a1104c709ec2b31bc54', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-02 15:23:58', '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-02 15:23:58' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 50ms (Views: 17.4ms | ActiveRecord: 7.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-02 11:23:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5f3913b04234d9d457e0ef7ce1d737a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-02 15:23:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-02 15:23:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd5f3913b04234d9d457e0ef7ce1d737a', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-02 15:23:58', '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-02 15:23:58' WHERE `dispatched_services`.`id` = 12
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 48ms (Views: 17.1ms | ActiveRecord: 6.0ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8285e399d4a74ac55e75406b5101258' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-02 15:23:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-02 15:23:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-02 15:23:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c8285e399d4a74ac55e75406b5101258', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-02 15:23:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (21, '--- {}\n', 'test_holding', 'holding', '2016-08-02 15:23:58')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-02 15:23:58')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-02 15:23:58', '2016-08-02 15:23:58')[0m
[1m[35m (5.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'deaf1084bc9c82aeef1e080d484a1c8a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-02 15:23:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 22, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 22, '2016-08-02 15:23:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'deaf1084bc9c82aeef1e080d484a1c8a', 'e7e9149c1fdfcd3be6736b651a0064bb', 22, '0.0.0.0', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', 22, 'test_holding', 'holding', '2016-08-02 15:23:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-02 15:23:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-02 15:23:59', '2016-08-02 15:23:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d524fb866e13526ceb44d3c98992565' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-02 15:23:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 23, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 23, '2016-08-02 15:23:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2d524fb866e13526ceb44d3c98992565', 'e7e9149c1fdfcd3be6736b651a0064bb', 23, '0.0.0.0', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 23, 'test_holding', 'holding', '2016-08-02 15:23:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-02 15:23:59', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '993959caf5cad8e340d42d98fdb3b009' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-02 15:23:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 24, '2016-08-02 15:23:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 24, '2016-08-02 15:23:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '993959caf5cad8e340d42d98fdb3b009', 'e7e9149c1fdfcd3be6736b651a0064bb', 24, '0.0.0.0', '2016-08-02 15:23:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 24, 'test_holding', 'holding', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-02 15:23:59', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '845c1b52a78715cdb272c3ec7a590261' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-02 15:23:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '845c1b52a78715cdb272c3ec7a590261', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-02 15:23:59', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa5126a41e2404b2d35fb56803642422' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-02 15:23:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 26, '2016-08-02 15:23:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 26, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.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, 26, '2016-08-02 15:23:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 26, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 26, '2016-08-02 15:23:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 26, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 26, '2016-08-02 15:23:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 26, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 26, '2016-08-02 15:23:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fa5126a41e2404b2d35fb56803642422', '06d451b80bf9fe3ce6849a48c98522d7', 26, 'info:sid/google', '0.0.0.0', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-02 15:23:59', '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35mServiceResponse Exists (0.3ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 26 LIMIT 1
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a89eb55955dc1c237414958819efad08' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-02 15:23:59')
[1m[36mSQL (0.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, 27, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 27, '2016-08-02 15:23:59')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a89eb55955dc1c237414958819efad08', '62590701c6f35b45309577ef8c8c22b4', 27, '0.0.0.0', '2016-08-02 15:23:59')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, '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', '2016-08-02 15:23:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e26b6a38f79b578fe7a8fbcc788a667' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-02 15:23:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 28, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 28, '2016-08-02 15:23:59')
[1m[36mSQL (0.2ms)[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, 28, '2016-08-02 15:23:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 28, '2016-08-02 15:23:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 28, '2016-08-02 15:23:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8e26b6a38f79b578fe7a8fbcc788a667', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-02 15:23:59')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-02 15:23:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-02 15:23:59', '2016-08-02 15:23:59')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mActiveRecord::SchemaMigration Load (7.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (75.6ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (34.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 (13.6ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.7ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (13.6ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.7ms)[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 (11.4ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.1ms)[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 (10.5ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.7ms)[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 (11.5ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.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 (12.3ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.9ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (13.5ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (15.4ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (14.4ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.2ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (11.3ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (11.9ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.8ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (10.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 (12.7ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.8ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.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 (11.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.7ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (10.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.5ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (1.1ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36m (0.2ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36mRequest Load (6.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '068043a863730995a3919e445275191c' 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.1ms)[0m BEGIN
[1m[36mSQL (12.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:05')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:31:05')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 14:31:05')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '068043a863730995a3919e445275191c', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 14:31:05')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:31:05')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60e8df8fa04d2c3220e935864196fd3c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:31:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:31:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 2, '2016-08-23 14:31:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '60e8df8fa04d2c3220e935864196fd3c', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 2, '0.0.0.0', '2016-08-23 14:31:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:31:05')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99b2da336a8813e656c033dbb39007ca' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:31:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:31:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 3, '2016-08-23 14:31:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '99b2da336a8813e656c033dbb39007ca', '9902a1d22a141a826ae31b1c83cb928c', 3, '0.0.0.0', '2016-08-23 14:31:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:31:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfa5f2bd4a6baec4ae1bec8544323c04' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:31:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 14:31:05')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'dfa5f2bd4a6baec4ae1bec8544323c04', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 14:31:05')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:31:05')[0m
[1m[35m (0.3ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:05 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '82dca6cf5173a4510b9c39bf85abd625' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:31:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 14:31:05')[0m
[1m[35m (12.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '82dca6cf5173a4510b9c39bf85abd625', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 14:31:05')
[1m[36m (5.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 5, '2016-08-23 14:31:05', '2016-08-23 14:31:05')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:31:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:05' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mDispatchedService Load (2.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mReferent Load (0.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (7.8ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (10.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (54.1ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (29.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (1.1ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 515ms (Views: 323.2ms | ActiveRecord: 72.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:31:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ff8c7b4e6528e9eef691ae0fc8ddcac' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 6, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 6, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 6, '2016-08-23 14:31:06')[0m
[1m[35m (11.6ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6ff8c7b4e6528e9eef691ae0fc8ddcac', 'a03fb1fb17f24f5ea845bf6c4450490b', 6, '127.0.0.1', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 14:31:06', '2016-08-23 14:31:06')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (0.6ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22some+book%22', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 2
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 67ms (Views: 15.5ms | ActiveRecord: 18.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 2016-08-23 10:31:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '483783ac7302061090dae832caebc96f' 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.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 7, '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 7, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 7, '2016-08-23 14:31:06')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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?genre=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '483783ac7302061090dae832caebc96f', 'bc13b80c2923ce2cbe0c8347141587a7', 7, '127.0.0.1', '2016-08-23 14:31:06')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 14:31:06', '2016-08-23 14:31:06')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 3
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.5ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 43ms (Views: 12.4ms | ActiveRecord: 6.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96c9b0adc6fb5a28b445a6bf2a8de502' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 8, '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '96c9b0adc6fb5a28b445a6bf2a8de502', '318e542032e1812e600e07efbdb1dfcc', 8, '0.0.0.0', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 8, '2016-08-23 14:31:06', '2016-08-23 14:31:06')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=8" for 127.0.0.1 at 2016-08-23 10:31:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"8"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.9ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.3ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 23ms (Views: 14.1ms | ActiveRecord: 3.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1f0a2840d75f4391ed46ee00202dc0c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 14:31:06')[0m
[1m[35m (8.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd1f0a2840d75f4391ed46ee00202dc0c', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 14:31:06', '2016-08-23 14:31:06')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (1.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (2.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.0ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 62ms (Views: 16.9ms | ActiveRecord: 16.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:31:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '55d72dce5b5794ee4b3ca02ec8d7c754' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 10, '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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=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', '55d72dce5b5794ee4b3ca02ec8d7c754', '9902a1d22a141a826ae31b1c83cb928c', 10, '127.0.0.1', '2016-08-23 14:31:06')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 14:31:06', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.5ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 18.8ms | ActiveRecord: 8.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '091669056a35e00f6876e75de9f935b2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 14:31:06')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '091669056a35e00f6876e75de9f935b2', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2016-08-23 14:31:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 14:31:06', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:31:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 59ms (Views: 17.2ms | ActiveRecord: 7.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f01d96c39e0366de56dcb3d9b6740ac3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 14:31:06')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f01d96c39e0366de56dcb3d9b6740ac3', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 14:31:06', '2016-08-23 14:31:06')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 52ms (Views: 16.2ms | ActiveRecord: 7.5ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ad0b8c6a903e66689d587a7900a2c3a7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 14:31:06')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ad0b8c6a903e66689d587a7900a2c3a7', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 14:31:06', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 51ms (Views: 17.6ms | ActiveRecord: 6.2ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb39d7f3c51f764756c2d9bddb3499d3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 14:31:06')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fb39d7f3c51f764756c2d9bddb3499d3', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:31:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 14:31:06', '2016-08-23 14:31:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '099ed015e9b6d5c0e5ace327707cfef8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 15, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 15, '2016-08-23 14:31:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '099ed015e9b6d5c0e5ace327707cfef8', 'e7e9149c1fdfcd3be6736b651a0064bb', 15, '0.0.0.0', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'test_holding', 'holding', '2016-08-23 14:31:06')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 14:31:06')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 14:31:06', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '692380b3ebde522fcf3e393db90c039b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 16, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 16, '2016-08-23 14:31:06')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '692380b3ebde522fcf3e393db90c039b', 'e7e9149c1fdfcd3be6736b651a0064bb', 16, '0.0.0.0', '2016-08-23 14:31:06')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'test_holding', 'holding', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 14:31:06', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aab940bc3bcfba60719225840eff11ed' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 17, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 17, '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'aab940bc3bcfba60719225840eff11ed', 'e7e9149c1fdfcd3be6736b651a0064bb', 17, '0.0.0.0', '2016-08-23 14:31:06')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 17, 'test_holding', 'holding', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 14:31:06', '2016-08-23 14:31:06')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dec0156e319335f4c605250471418990' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 18, '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 18, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[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, 18, '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 18, '2016-08-23 14:31:06')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'dec0156e319335f4c605250471418990', 'd95884a882a64501650fb8f9deae5104', 18, 'info:sid/google', '0.0.0.0', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 14:31:06', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3f07002a32b96ddfb7436a1db48a0fc' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 19, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 19, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.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, 19, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 19, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 19, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 19, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 19, '2016-08-23 14:31:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 19, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 19, '2016-08-23 14:31:06')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c3f07002a32b96ddfb7436a1db48a0fc', '06d451b80bf9fe3ce6849a48c98522d7', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 14:31:06', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mServiceResponse Exists (0.4ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 19 LIMIT 1
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c4e0f2e328df0e43539af0da7bf9869c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:31:06')
[1m[36mSQL (0.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, 20, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 20, '2016-08-23 14:31:06')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'c4e0f2e328df0e43539af0da7bf9869c', '62590701c6f35b45309577ef8c8c22b4', 20, '0.0.0.0', '2016-08-23 14:31:06')[0m
[1m[35m (5.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, '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', '2016-08-23 14:31:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 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 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d16d8022f5d6ea1304ab252f7525daf' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 14:31:06')
[1m[36m (12.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '8d16d8022f5d6ea1304ab252f7525daf', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 14:31:06')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 21\n', 21, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T10%3A31%3A06-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.5ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08a96c977b0a66bb3996cf53e39c5de5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 14:31:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '08a96c977b0a66bb3996cf53e39c5de5', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 21
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 21\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T10%3A31%3A06-04%3A00&ctx_id=&ctx_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 18ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '06d6ed6f1778b3194574c3fe84235d75' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 14:31:06')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '06d6ed6f1778b3194574c3fe84235d75', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 14:31:06')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 23, '2016-08-23 14:31:06', '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T10%3A31%3A06-04%3A00&ctx_id=&ctx_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: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 10ms (ActiveRecord: 2.3ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[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 (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 16
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49da29c780ea16c4a2edae5db93d3441' 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.2ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:31:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 14:31:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '49da29c780ea16c4a2edae5db93d3441', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 14:31:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:06')[0m
[1m[35m (0.8ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 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` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 14:31:06', '2016-08-23 14:31:06')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
Redirected to http://example.org
Completed 302 Found in 11ms (ActiveRecord: 2.9ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e7f83d74970a8c3f10a1ab8bc7db98f' 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 (0.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 (1.3ms)[0m BEGIN
[1m[36m (1.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 17[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:31:06')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 14:31:06')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '1e7f83d74970a8c3f10a1ab8bc7db98f', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 14:31:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:07')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:07')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7ee4b3640d0c931838bd19acc30f750' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:07')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:31:07')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 14:31:07')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e7ee4b3640d0c931838bd19acc30f750', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 14:31:07')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:07')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 26, '2016-08-23 14:31:07', '2016-08-23 14:31:07')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:07')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 2.2ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f7694315b4f0258d0a9416d74f9583c' 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 (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:07')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:31:07')
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:31:07' WHERE `dispatched_services`.`id` = 18[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, 27, '2016-08-23 14:31:07')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[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` = 30[0m
[1m[35mSQL (0.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', '1f7694315b4f0258d0a9416d74f9583c', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 14:31:07')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"27"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:07')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Redirected to http://test.host/resolve?umlaut.request_id=27&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T10%3A31%3A07-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '563ca36c4867e491b355a757bcaef911' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:07')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:31:07')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 14:31:07')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 14:31:07')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '563ca36c4867e491b355a757bcaef911', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 14:31:07')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (28, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:31:07')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 14:31:07')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 14:31:07', '2016-08-23 14:31:07')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (13.7ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (10.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 (9.8ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (9.8ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (9.7ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (8.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 (9.2ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (8.1ms)[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 (8.9ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (8.2ms)[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 (9.1ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (10.7ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (7.4ms)[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 (10.0ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (9.8ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (10.5ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (10.1ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (10.3ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (10.6ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (7.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 (9.3ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (10.1ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (10.7ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (7.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 (9.7ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (10.3ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (8.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (8.8ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (9.8ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (7.1ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (9.8ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (35.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (11.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0e5500c6162d39d0d0520c152dad8dbf' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:31:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 14:31:33')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0e5500c6162d39d0d0520c152dad8dbf', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 14:31:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:31:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8df0a8b62a677b2744030363a3a16347' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:31:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 2, '2016-08-23 14:31:33')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8df0a8b62a677b2744030363a3a16347', '9902a1d22a141a826ae31b1c83cb928c', 2, '0.0.0.0', '2016-08-23 14:31:33')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:31:33')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f04351aab886bbffe42e00d3be2cd6dc' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:31:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 3, '2016-08-23 14:31:33')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f04351aab886bbffe42e00d3be2cd6dc', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 3, '0.0.0.0', '2016-08-23 14:31:33')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:31:33')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e4331d402e015d6bc09ff1a4a88303c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 14:31:33')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5e4331d402e015d6bc09ff1a4a88303c', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 14:31:33')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[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', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:31:33')[0m
[1m[35m (3.3ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:33 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2818fd949f7efececa89e9e2e0b90a1c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:31:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 14:31:33')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2818fd949f7efececa89e9e2e0b90a1c', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 14:31:33')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 5, '2016-08-23 14:31:33', '2016-08-23 14:31:33')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (0.3ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:31:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:33' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.7ms)
[1m[36mReferent Load (0.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (48.3ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (25.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (1.0ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 410ms (Views: 267.2ms | ActiveRecord: 42.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:31:33 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fc534ace149882cc6429be3c5625b3d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:31:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 6, '2016-08-23 14:31:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 6, '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 6, '2016-08-23 14:31:33')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '8fc534ace149882cc6429be3c5625b3d', 'a03fb1fb17f24f5ea845bf6c4450490b', 6, '127.0.0.1', '2016-08-23 14:31:33')[0m
[1m[35m (11.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 14:31:33', '2016-08-23 14:31:33')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (5.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, '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', '2016-08-23 14:31:33')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:31:33' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[36mDispatchedService Load (1.4ms)[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.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.9ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (20.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 128ms (Views: 24.6ms | ActiveRecord: 46.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 2016-08-23 10:31:33 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1db422e4cdd78346fbcbdf8803024251' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:31:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 7, '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 7, '2016-08-23 14:31:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 7, '2016-08-23 14:31:33')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1db422e4cdd78346fbcbdf8803024251', 'bc13b80c2923ce2cbe0c8347141587a7', 7, '127.0.0.1', '2016-08-23 14:31:33')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 14:31:33', '2016-08-23 14:31:33')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (0.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 (6.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:31:33' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (12.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.9ms)
[1m[35mServiceResponse Load (0.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (21.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 95ms (Views: 23.5ms | ActiveRecord: 19.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37f15cbd35411ddc456febdba60ad8e9' 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.3ms)[0m BEGIN
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 14:31:33')
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 8, '2016-08-23 14:31:33')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '37f15cbd35411ddc456febdba60ad8e9', '318e542032e1812e600e07efbdb1dfcc', 8, '0.0.0.0', '2016-08-23 14:31:33')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 8, '2016-08-23 14:31:33', '2016-08-23 14:31:33')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=8" for 127.0.0.1 at 2016-08-23 10:31:33 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"8"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 53ms (Views: 39.8ms | ActiveRecord: 4.6ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:33 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72ad1c6e8786c30d114014ddac18121f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:31:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 14:31:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '72ad1c6e8786c30d114014ddac18121f', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 14:31:33')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 14:31:33', '2016-08-23 14:31:33')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (5.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:31:33')
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:34' WHERE `dispatched_services`.`id` = 5
[1m[36m (11.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (3.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (6.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.9ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (28.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 101ms (Views: 28.1ms | ActiveRecord: 20.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:31:34 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b9734c7f2a9c2f863f46cb3b7ffd9b0a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 10, '2016-08-23 14:31:34')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'b9734c7f2a9c2f863f46cb3b7ffd9b0a', '9902a1d22a141a826ae31b1c83cb928c', 10, '127.0.0.1', '2016-08-23 14:31:34')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 14:31:34', '2016-08-23 14:31:34')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (6.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:31:34')[0m
[1m[35m (4.8ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:34' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 16.0ms | ActiveRecord: 24.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:34 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '069e5f24695e5b1a0228428469ca4042' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 14:31:34')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '069e5f24695e5b1a0228428469ca4042', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2016-08-23 14:31:34')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 14:31:34', '2016-08-23 14:31:34')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:34' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.8ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 50ms (Views: 17.2ms | ActiveRecord: 6.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:34 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c50d94736508915fe30c6dc954d9f0e7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 14:31:34')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c50d94736508915fe30c6dc954d9f0e7', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:31:34')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 14:31:34', '2016-08-23 14:31:34')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)
[1m[36mDispatchedService Load (0.2ms)[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 (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:31:34')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:34' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 54ms (Views: 17.1ms | ActiveRecord: 7.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:31:34 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '313db49b00d75233edc9f17643ea220d' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '313db49b00d75233edc9f17643ea220d', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 14:31:34', '2016-08-23 14:31:34')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:31:34' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/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` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.8ms)
[1m[36mPermalink Load (0.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 62ms (Views: 21.7ms | ActiveRecord: 7.3ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60018c442d8a199fad346a1221cdf788' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 14, '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 14, '2016-08-23 14:31:34')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '60018c442d8a199fad346a1221cdf788', 'e7e9149c1fdfcd3be6736b651a0064bb', 14, '0.0.0.0', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'test_holding', 'holding', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-23 14:31:34')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 14:31:34', '2016-08-23 14:31:34')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6852bab66640da679d9663aa594b1aca' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 15, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 15, '2016-08-23 14:31:34')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6852bab66640da679d9663aa594b1aca', 'e7e9149c1fdfcd3be6736b651a0064bb', 15, '0.0.0.0', '2016-08-23 14:31:34')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 15, 'test_holding', 'holding', '2016-08-23 14:31:34')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 14:31:34', '2016-08-23 14:31:34')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed04db5f15905c8d8a8a43ce5da78ae9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 16, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 16, '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ed04db5f15905c8d8a8a43ce5da78ae9', 'e7e9149c1fdfcd3be6736b651a0064bb', 16, '0.0.0.0', '2016-08-23 14:31:34')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'test_holding', 'holding', '2016-08-23 14:31:34')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 14:31:34', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7255e2ae0a0d7d9042a5830ccd153c64' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:31:34')
[1m[36mSQL (0.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, 17, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 17, '2016-08-23 14:31:34')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '7255e2ae0a0d7d9042a5830ccd153c64', '62590701c6f35b45309577ef8c8c22b4', 17, '0.0.0.0', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, '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', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ad016c8b1df5f6178d2d15e6b6ea97cb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 18, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 18, '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 18, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 18, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 18, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 18, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 18, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 18, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 18, '2016-08-23 14:31:34')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ad016c8b1df5f6178d2d15e6b6ea97cb', '06d451b80bf9fe3ce6849a48c98522d7', 18, 'info:sid/google', '0.0.0.0', '2016-08-23 14:31:34')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 14:31:34', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 18 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f99eab1267ff7a19aa8fd0c80961cbfb' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 19, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 19, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 19, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[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, 19, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 19, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 19, '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f99eab1267ff7a19aa8fd0c80961cbfb', 'd95884a882a64501650fb8f9deae5104', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 14:31:34')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 14:31:34', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc103230c7b2b8cdc48b91535456e801' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 14:31:34')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fc103230c7b2b8cdc48b91535456e801', '1f2487b5ab29a0f58587335258d7f8e0', 20, '0.0.0.0', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:31:34')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 14:31:34', '2016-08-23 14:31:34')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '61febcb357a36454051089184e037d13' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '61febcb357a36454051089184e037d13', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (21, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 14:31:34', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[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`
Rendered text template (0.0ms)
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 (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41104a9c02aed2e04ca168823ac0893d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 14:31:34')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '41104a9c02aed2e04ca168823ac0893d', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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 22\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T10%3A31%3A34-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6f6df2fde64be3722f7541b50b307996' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 14:31:34')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6f6df2fde64be3722f7541b50b307996', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[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 23
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 23\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:34')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T10%3A31%3A34-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1952865853bb7098c01bc99ab37a0a1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 14:31:34')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a1952865853bb7098c01bc99ab37a0a1', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:34')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 14:31:34', '2016-08-23 14:31:34')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T10%3A31%3A34-04%3A00&ctx_id=&ctx_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: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 11ms (ActiveRecord: 2.5ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mDispatchedService Load (0.7ms)[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[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:31:34' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d3d477870be39b880cbb8138db2400e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 14:31:34')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0d3d477870be39b880cbb8138db2400e', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 14:31:34', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.3ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df4b2486936ab95b112c384a473f3344' 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 (0.4ms)[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 (1.2ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:31:34' WHERE `dispatched_services`.`id` = 18
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:31:34')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 14:31:34')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.7ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.5ms)[0m COMMIT
[1m[36mSQL (0.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', 'df4b2486936ab95b112c384a473f3344', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 14:31:34')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60acc63a0634cf3526fde60b52b25ecc' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:31:34')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 14:31:34')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '60acc63a0634cf3526fde60b52b25ecc', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 14:31:34')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 14:31:34', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:34')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 2.3ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e409cf2834b32e0192b9e82fc0f15942' 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 (0.5ms)[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[35m (0.1ms)[0m BEGIN
[1m[36m (1.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:31:34' WHERE `dispatched_services`.`id` = 19[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:31:34')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 14:31:34')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'e409cf2834b32e0192b9e82fc0f15942', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 14:31:34')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:34')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)
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=2016-08-23T10%3A31%3A34-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.9ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (9.7ms)[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 (14.7ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.1ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (13.2ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.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 (11.8ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.0ms)[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 (10.9ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (14.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 (12.4ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.6ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (10.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 (11.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.1ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.7ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.5ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (17.6ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.0ms)[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 (12.3ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.6ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (10.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 (11.6ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.8ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.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 (11.5ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.8ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.2ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (8.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.5ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.3ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb4e737a787db29b176057cf6f6f53a8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:32:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fb4e737a787db29b176057cf6f6f53a8', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 14:32:44')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (1, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:32:44')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 14:32:44')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 14:32:44', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd67af6527c27c7f2f6fb31a5e85a3da1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:32:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd67af6527c27c7f2f6fb31a5e85a3da1', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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', '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 14:32:44', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d6e4323f02d2c0519285a0626b3ea7f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:32:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2016-08-23 14:32:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2016-08-23 14:32:44')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6d6e4323f02d2c0519285a0626b3ea7f', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:32:44')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 14:32:44')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 14:32:44', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6b2f0ebbbda97db5d677904e4ffe1d8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:32:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 4, '2016-08-23 14:32:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 4, '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b6b2f0ebbbda97db5d677904e4ffe1d8', 'e7e9149c1fdfcd3be6736b651a0064bb', 4, '0.0.0.0', '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'test_holding', 'holding', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 14:32:44', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6b11be4edb33b86d5655c73f0cb8e233' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6b11be4edb33b86d5655c73f0cb8e233', '1f2487b5ab29a0f58587335258d7f8e0', 5, '0.0.0.0', '2016-08-23 14:32:44')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:32:44')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 14:32:44', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:32:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f357dd8361576f01e178b29eddb3133c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2016-08-23 14:32:44')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f357dd8361576f01e178b29eddb3133c', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 6, '2016-08-23 14:32:44', '2016-08-23 14:32:44')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:32:44' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.0ms)
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (46.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (6.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 411ms (Views: 341.2ms | ActiveRecord: 8.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:32:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e18558f3ab1f8d9df0bd4af9b941435' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 7, '2016-08-23 14:32:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 7, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 7, '2016-08-23 14:32:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 7, '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6e18558f3ab1f8d9df0bd4af9b941435', 'a03fb1fb17f24f5ea845bf6c4450490b', 7, '127.0.0.1', '2016-08-23 14:32:44')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 14:32:44', '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (0.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 (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22some+book%22', '2016-08-23 14:32:44')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:32:44' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.0ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 52ms (Views: 14.7ms | ActiveRecord: 7.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 2016-08-23 10:32:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'adcdf0ca647d79b168bd6783456ee740' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:32:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 8, '2016-08-23 14:32:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 8, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 8, '2016-08-23 14:32:44')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'adcdf0ca647d79b168bd6783456ee740', 'bc13b80c2923ce2cbe0c8347141587a7', 8, '127.0.0.1', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 14:32:44', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.8ms)[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 (0.4ms)[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[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:32:44' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 44ms (Views: 12.6ms | ActiveRecord: 6.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '70f03dbfcc824895cf25059185e24aae' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:32:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 14:32:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 9, '2016-08-23 14:32:44')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '70f03dbfcc824895cf25059185e24aae', '318e542032e1812e600e07efbdb1dfcc', 9, '0.0.0.0', '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 9, '2016-08-23 14:32:44', '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.4ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=9" for 127.0.0.1 at 2016-08-23 10:32:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"9"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 23ms (Views: 15.1ms | ActiveRecord: 3.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:32:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be4d229d3326102a9dd84813631457e0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:32:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-23 14:32:44')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'be4d229d3326102a9dd84813631457e0', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 14:32:44', '2016-08-23 14:32:44')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)
[1m[36mDispatchedService Load (0.2ms)[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 (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:32:44' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 53ms (Views: 16.1ms | ActiveRecord: 8.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:32:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '90d3bc431ad9298b46e2e6c66f78e47f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:32:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 11, '2016-08-23 14:32:44')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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=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', '90d3bc431ad9298b46e2e6c66f78e47f', '9902a1d22a141a826ae31b1c83cb928c', 11, '127.0.0.1', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 14:32:44', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
[1m[35mServiceResponse Load (0.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 11, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:32:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:32:44' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (16.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (20.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (36.6ms)
[1m[35mPermalink Load (0.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 71ms (Views: 37.1ms | ActiveRecord: 8.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:32:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ddda0c173e3db2dc08fb1b42fb9b9c6' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:32:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 14:32:44')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7ddda0c173e3db2dc08fb1b42fb9b9c6', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:32:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 14:32:45', '2016-08-23 14:32:45')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:32:45' WHERE `dispatched_services`.`id` = 12
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mReferent Load (5.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (9.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (25.8ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 67ms (Views: 22.3ms | ActiveRecord: 11.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:32:45 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '114d6e71f861b1ef60ff1f9820bbbb6c' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 14:32:45')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '114d6e71f861b1ef60ff1f9820bbbb6c', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 14:32:45', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:32:45' WHERE `dispatched_services`.`id` = 13[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.5ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 55ms (Views: 19.3ms | ActiveRecord: 7.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:32:45 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31f819ccc6e028010e4350bb0eb932c1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:32:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '31f819ccc6e028010e4350bb0eb932c1', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 14:32:45')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 14:32:45', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.3ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:32:45' WHERE `dispatched_services`.`id` = 14
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mReferent Load (2.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 55ms (Views: 17.4ms | ActiveRecord: 8.5ms)
[1m[35m (0.2ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1195cc87a6638cee600875057d26466a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1195cc87a6638cee600875057d26466a', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2016-08-23 14:32:45')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:32:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50906d3940e0d95112c248116b41cb6f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 16, '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '50906d3940e0d95112c248116b41cb6f', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 16, '0.0.0.0', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '52e90b63fcaea7b545138c98f3923840' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:32:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 17, '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '52e90b63fcaea7b545138c98f3923840', '9902a1d22a141a826ae31b1c83cb928c', 17, '0.0.0.0', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:32:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e7f0b0154f0bb50127c0497cee1e714' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:32:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 14:32:45')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5e7f0b0154f0bb50127c0497cee1e714', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:32:45')
[1m[36m (0.4ms)[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`
Rendered text template (0.0ms)
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 (0.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 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1062a4ceade4d4c32bfce4a0035a5ff5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1062a4ceade4d4c32bfce4a0035a5ff5', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 19
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 19\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
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=2016-08-23T10%3A32%3A45-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.5ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f67ac0f1267f215da485b12338baae3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:32:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7f67ac0f1267f215da485b12338baae3', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 14:32:45')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:32:45')[0m
[1m[35m (0.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 21\n', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
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=2016-08-23T10%3A32%3A45-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8a9301f4a50877b66eabb426a959fb4' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f8a9301f4a50877b66eabb426a959fb4', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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 (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2016-08-23 14:32:45', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:32:45')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
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=2016-08-23T10%3A32%3A45-04%3A00&ctx_id=&ctx_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: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 16ms (ActiveRecord: 2.6ms)
[1m[36mDispatchedService Load (0.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[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mSQL (2.0ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:32:45' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '078511dcbba72355b3e72c5f180e81e7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '078511dcbba72355b3e72c5f180e81e7', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 22, '2016-08-23 14:32:45', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 1.9ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c2f5df7cfdbd87583c01bd90f86aef7' 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 (0.4ms)[0m SELECT `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
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:32:45' WHERE `dispatched_services`.`id` = 16
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:32:45')[0m
[1m[35m (5.0ms)[0m COMMIT
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 14:32:45')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.7ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', '5c2f5df7cfdbd87583c01bd90f86aef7', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:32:45')
[1m[36m (0.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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:32:45')[0m
[1m[35m (0.2ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f90e25ae572863162ea85ad47a164496' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:32:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 14:32:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f90e25ae572863162ea85ad47a164496', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 14:32:45')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 14:32:45', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.1ms)[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 9ms (Views: 0.3ms | ActiveRecord: 2.0ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ccf8eafc75480a520bcca0de2cc3ed1' 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 (0.4ms)[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 (1.1ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:32:45' WHERE `dispatched_services`.`id` = 17[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:32:45')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 14:32:45')
[1m[36m (14.4ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 30[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '4ccf8eafc75480a520bcca0de2cc3ed1', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T10%3A32%3A45-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.4ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4b44b6ff99b3f0f2a1d76e6e8c0ae04' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[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, 26, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2016-08-23 14:32:45')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd4b44b6ff99b3f0f2a1d76e6e8c0ae04', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, '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', '2016-08-23 14:32:45')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1bbc35352d7a258934aeceffb85b587d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[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, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[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, '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2016-08-23 14:32:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1bbc35352d7a258934aeceffb85b587d', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 14:32:45')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 14:32:45', '2016-08-23 14:32:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a56f81d5bf9b9d6b305cce91bb4c928' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 28, '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 28, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[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, 28, '2016-08-23 14:32:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 28, '2016-08-23 14:32:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 28, '2016-08-23 14:32:45')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4a56f81d5bf9b9d6b305cce91bb4c928', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, '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', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 14:32:45', '2016-08-23 14:32:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36m (2.5ms)[0m [1mDROP TABLE `clickthroughs`[0m
[1m[35m (9.3ms)[0m CREATE 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
[1m[36m (19.3ms)[0m [1mCREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`) [0m
[1m[35m (15.4ms)[0m CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)
[1m[36m (16.7ms)[0m [1mCREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`) [0m
[1m[35m (1.6ms)[0m DROP TABLE `dispatched_services`
[1m[36m (10.1ms)[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 (11.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (1.5ms)[0m [1mDROP TABLE `permalinks`[0m
[1m[35m (9.6ms)[0m CREATE 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
[1m[36m (13.5ms)[0m [1mCREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`) [0m
[1m[35m (6.1ms)[0m DROP TABLE `referent_values`
[1m[36m (7.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 (10.7ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.9ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (2.1ms)[0m DROP TABLE `referents`
[1m[36m (12.9ms)[0m [1mCREATE 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[0m
[1m[35m (10.4ms)[0m CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)
[1m[36m (13.4ms)[0m [1mCREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`) [0m
[1m[35m (13.3ms)[0m CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)
[1m[36m (10.6ms)[0m [1mCREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`) [0m
[1m[35m (11.2ms)[0m CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)
[1m[36m (15.2ms)[0m [1mCREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`) [0m
[1m[35m (1.8ms)[0m DROP TABLE `requests`
[1m[36m (10.8ms)[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 (9.8ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (11.6ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.2ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (2.0ms)[0m [1mDROP TABLE `service_responses`[0m
[1m[35m (8.9ms)[0m CREATE 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
[1m[36m (10.2ms)[0m [1mCREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`) [0m
[1m[35m (10.7ms)[0m CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)
[1m[36m (1.6ms)[0m [1mDROP TABLE `sessions`[0m
[1m[35m (9.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 (13.1ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.1ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (1.8ms)[0m [1mDROP TABLE `sfx_urls`[0m
[1m[35m (12.3ms)[0m CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB
[1m[36m (14.6ms)[0m [1mCREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`) [0m
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
,fk.referenced_column_name as 'primary_key'
,fk.column_name as 'column'
,fk.constraint_name as 'name'
FROM information_schema.key_column_usage fk
WHERE fk.referenced_column_name is not null
AND fk.table_schema = 'dummy_test'
AND fk.table_name = 'clickthroughs'
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `clickthroughs`[0m
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
,fk.referenced_column_name as 'primary_key'
,fk.column_name as 'column'
,fk.constraint_name as 'name'
FROM information_schema.key_column_usage fk
WHERE fk.referenced_column_name is not null
AND fk.table_schema = 'dummy_test'
AND fk.table_name = 'dispatched_services'
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `dispatched_services`[0m
[1m[35m (0.1ms)[0m SELECT fk.referenced_table_name as 'to_table'
,fk.referenced_column_name as 'primary_key'
,fk.column_name as 'column'
,fk.constraint_name as 'name'
FROM information_schema.key_column_usage fk
WHERE fk.referenced_column_name is not null
AND fk.table_schema = 'dummy_test'
AND fk.table_name = 'permalinks'
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `permalinks`[0m
[1m[35m (0.1ms)[0m SELECT fk.referenced_table_name as 'to_table'
,fk.referenced_column_name as 'primary_key'
,fk.column_name as 'column'
,fk.constraint_name as 'name'
FROM information_schema.key_column_usage fk
WHERE fk.referenced_column_name is not null
AND fk.table_schema = 'dummy_test'
AND fk.table_name = 'referent_values'
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `referent_values`[0m
[1m[35m (0.1ms)[0m SELECT fk.referenced_table_name as 'to_table'
,fk.referenced_column_name as 'primary_key'
,fk.column_name as 'column'
,fk.constraint_name as 'name'
FROM information_schema.key_column_usage fk
WHERE fk.referenced_column_name is not null
AND fk.table_schema = 'dummy_test'
AND fk.table_name = 'referents'
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `referents`[0m
[1m[35m (0.1ms)[0m SELECT fk.referenced_table_name as 'to_table'
,fk.referenced_column_name as 'primary_key'
,fk.column_name as 'column'
,fk.constraint_name as 'name'
FROM information_schema.key_column_usage fk
WHERE fk.referenced_column_name is not null
AND fk.table_schema = 'dummy_test'
AND fk.table_name = 'requests'
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `requests`[0m
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
,fk.referenced_column_name as 'primary_key'
,fk.column_name as 'column'
,fk.constraint_name as 'name'
FROM information_schema.key_column_usage fk
WHERE fk.referenced_column_name is not null
AND fk.table_schema = 'dummy_test'
AND fk.table_name = 'service_responses'
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `service_responses`[0m
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
,fk.referenced_column_name as 'primary_key'
,fk.column_name as 'column'
,fk.constraint_name as 'name'
FROM information_schema.key_column_usage fk
WHERE fk.referenced_column_name is not null
AND fk.table_schema = 'dummy_test'
AND fk.table_name = 'sessions'
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `sessions`[0m
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
,fk.referenced_column_name as 'primary_key'
,fk.column_name as 'column'
,fk.constraint_name as 'name'
FROM information_schema.key_column_usage fk
WHERE fk.referenced_column_name is not null
AND fk.table_schema = 'dummy_test'
AND fk.table_name = 'sfx_urls'
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `sfx_urls`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.9ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (10.2ms)[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 (13.9ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (10.3ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (14.2ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.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 (11.1ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.1ms)[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 (11.8ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.0ms)[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 (10.7ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.9ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.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 (9.8ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.7ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (11.4ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (17.2ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (8.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 (32.7ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.8ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.1ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (8.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 (10.9ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (8.4ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (11.2ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (10.0ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81e2223e390b31f9dcaece7db9969a5f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:38:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 14:38:24')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '81e2223e390b31f9dcaece7db9969a5f', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 14:38:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 14:38:24', '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3aa28de7265e5559e435344c93dcdb3d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:38:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2016-08-23 14:38:24')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3aa28de7265e5559e435344c93dcdb3d', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2016-08-23 14:38:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 14:38:24', '2016-08-23 14:38:24')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd24ff8adc4e2e5d5a882b363c1b99987' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:38:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2016-08-23 14:38:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2016-08-23 14:38:24')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd24ff8adc4e2e5d5a882b363c1b99987', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2016-08-23 14:38:24')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 3, 'test_holding', 'holding', '2016-08-23 14:38:24')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 14:38:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 14:38:24', '2016-08-23 14:38:24')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '024c2b850e05e8bf69f3d686182adece' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:24')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '024c2b850e05e8bf69f3d686182adece', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 14:38:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:38:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '87116e13460dc2e4c0b856f00eb0428f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:38:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 5, '2016-08-23 14:38:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '87116e13460dc2e4c0b856f00eb0428f', '9902a1d22a141a826ae31b1c83cb928c', 5, '0.0.0.0', '2016-08-23 14:38:24')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:38:24')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64a70c7c525b2ce840db4545b7592efc' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:38:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 6, '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '64a70c7c525b2ce840db4545b7592efc', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 6, '0.0.0.0', '2016-08-23 14:38:24')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:38:24')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b718d1096edf3bbee40b2a6efff0d38f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:38:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 14:38:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b718d1096edf3bbee40b2a6efff0d38f', '1f2487b5ab29a0f58587335258d7f8e0', 7, '0.0.0.0', '2016-08-23 14:38:24')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:38:24 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '920b5869e95545676104d84cfcc893c0' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 14:38:24')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '920b5869e95545676104d84cfcc893c0', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 14:38:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 8, '2016-08-23 14:38:24', '2016-08-23 14:38:24')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:38:24')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:38:24' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (4.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.8ms)
[1m[35mReferent Load (0.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (52.1ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (13.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (1.4ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (2.9ms)[0m COMMIT
Completed 200 OK in 397ms (Views: 329.1ms | ActiveRecord: 12.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:38:24 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd73ae2c4da5adab55d3fa4f86057a945' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 14:38:24')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 14:38:24')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 9, '2016-08-23 14:38:24')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 9, '2016-08-23 14:38:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd73ae2c4da5adab55d3fa4f86057a945', 'a03fb1fb17f24f5ea845bf6c4450490b', 9, '127.0.0.1', '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 14:38:24', '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.3ms)[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 (0.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, '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', '2016-08-23 14:38:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:38:24' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 75ms (Views: 21.1ms | ActiveRecord: 7.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 2016-08-23 10:38:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c56ba49db1d9046e4d5e2c09e099f40' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 10, '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 10, '2016-08-23 14:38:25')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0c56ba49db1d9046e4d5e2c09e099f40', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 14:38:25')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 14:38:25', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 53ms (Views: 20.4ms | ActiveRecord: 5.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '28adb5c1fa33ca9e554326e8132a6f31' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '28adb5c1fa33ca9e554326e8132a6f31', '318e542032e1812e600e07efbdb1dfcc', 11, '0.0.0.0', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 11, '2016-08-23 14:38:25', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=11" for 127.0.0.1 at 2016-08-23 10:38:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"11"}
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 26ms (Views: 16.7ms | ActiveRecord: 3.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:38:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd9eb41e90e8d1f29590b3fce3d648e3' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'bd9eb41e90e8d1f29590b3fce3d648e3', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 14:38:25', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 54ms (Views: 16.1ms | ActiveRecord: 7.5ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:38:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '310f8f722c89a4d1f154552160d03ab0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 13, '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '310f8f722c89a4d1f154552160d03ab0', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 14:38:25', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:38:25')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (34.4ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 71ms (Views: 34.5ms | ActiveRecord: 7.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:38:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a225bf986c5ae08254d09a43d6124539' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 14:38:25')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a225bf986c5ae08254d09a43d6124539', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 14:38:25')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 14:38:25', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mReferent Load (2.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (7.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (2.1ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (24.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 66ms (Views: 23.6ms | ActiveRecord: 9.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:38:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '55c692d2a30c126342a3af894aff075e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '55c692d2a30c126342a3af894aff075e', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 14:38:25', '2016-08-23 14:38:25')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.7ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/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` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (5.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.0ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 62ms (Views: 22.3ms | ActiveRecord: 11.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:38:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '87f5a517246f1ce3682c75b12fb19550' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 14:38:25')
[1m[36m (4.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '87f5a517246f1ce3682c75b12fb19550', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 14:38:25', '2016-08-23 14:38:25')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 61ms (Views: 16.7ms | ActiveRecord: 13.1ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6b87877a2917c31ed1d13261694487c2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 14:38:25')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6b87877a2917c31ed1d13261694487c2', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2016-08-23 14:38:25')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:38:25')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 14:38:25', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
-----------------------------------------------------------------
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 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e9bec69ebbf4222e74540480be26a03' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6e9bec69ebbf4222e74540480be26a03', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 14:38:25')[0m
[1m[35m (0.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 18
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 18\n', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T10%3A38%3A25-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.3ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ce21c7d2f0ba00395549637a65ff9c1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7ce21c7d2f0ba00395549637a65ff9c1', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 14:38:25')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:38:25')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 19
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 19\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:38:25')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
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=2016-08-23T10%3A38%3A25-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '38eac6e98841c70a575f110096b86a5d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '38eac6e98841c70a575f110096b86a5d', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:38:25')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 20, '2016-08-23 14:38:25', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
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=2016-08-23T10%3A38%3A25-04%3A00&ctx_id=&ctx_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: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 9ms (ActiveRecord: 1.9ms)
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.5ms)[0m BEGIN
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 14
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 22[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99ad0aa7c5c1c8d48e5b368a54e2b787' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.8ms)[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', '99ad0aa7c5c1c8d48e5b368a54e2b787', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 21, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[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 (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2016-08-23 14:38:25', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.8ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f99c9cdf9a3f4a0cad305b93845c1b61' 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 (0.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 (1.0ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 15[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:38:25')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 14:38:25')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mSQL (0.5ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'f99c9cdf9a3f4a0cad305b93845c1b61', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '02eec6dba6ed13593e3946dca41d5206' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '02eec6dba6ed13593e3946dca41d5206', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 14:38:25')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "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 (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 23, '2016-08-23 14:38:25', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 14ms (Views: 0.3ms | ActiveRecord: 3.6ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '00ce99df347bf7ac13ffd298a161501c' 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 (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35m (2.2ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 16
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:38:25')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 14:38:25')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', '00ce99df347bf7ac13ffd298a161501c', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 14:38:25')[0m
[1m[35m (0.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
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=2016-08-23T10%3A38%3A25-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '616da7590db7aca3fc7269a961403dbe' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 25, '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 25, '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '616da7590db7aca3fc7269a961403dbe', 'e7e9149c1fdfcd3be6736b651a0064bb', 25, '0.0.0.0', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (25, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 14:38:25', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8383d5013973b8f7a7d1325489867ad' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.1ms)[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, 26, '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2016-08-23 14:38:25')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd8383d5013973b8f7a7d1325489867ad', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, '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', '2016-08-23 14:38:25')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d6da82876f53caa92ed5b27e78d1cc4' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.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, 27, '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 27, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2016-08-23 14:38:25')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6d6da82876f53caa92ed5b27e78d1cc4', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 14:38:25')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 14:38:25', '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4afe049c97fe42b4d2a51c977871ff5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 28, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 28, '2016-08-23 14:38:25')
[1m[36mSQL (0.1ms)[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, 28, '2016-08-23 14:38:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 28, '2016-08-23 14:38:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 28, '2016-08-23 14:38:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a4afe049c97fe42b4d2a51c977871ff5', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 14:38:25', '2016-08-23 14:38:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (18.5ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (11.4ms)[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 (15.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.9ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (11.6ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.7ms)[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 (12.9ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.5ms)[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 (10.9ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.6ms)[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 (13.1ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (11.0ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.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 (11.7ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.1ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (13.4ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.2ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (8.3ms)[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 (12.8ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (20.0ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (21.9ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (14.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 (15.5ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (18.9ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (21.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 (12.9ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (17.5ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (13.0ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (13.1ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (12.3ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (19.0ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.3ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.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 2016-08-23 10:44:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2406781ffbfbdb3c565373035359ed44' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 14:44:13')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2406781ffbfbdb3c565373035359ed44', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 14:44:13', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (0.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 (0.6ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:44:13')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (3.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (48.2ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (5.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 417ms (Views: 251.5ms | ActiveRecord: 15.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:44:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6df41cb218e385133892d1935e660071' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 14:44:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 14:44:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 14:44:13')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '6df41cb218e385133892d1935e660071', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 14:44:13')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 14:44:13', '2016-08-23 14:44:13')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, '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', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 2
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 53ms (Views: 15.2ms | ActiveRecord: 6.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 2016-08-23 10:44:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bc659916e9a3ee0219fb36a8a0ea130' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6bc659916e9a3ee0219fb36a8a0ea130', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 14:44:13', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[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 (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 3
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 44ms (Views: 13.4ms | ActiveRecord: 6.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6b1ad57af1f9a4a75809df0967b5a47' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 14:44:13')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e6b1ad57af1f9a4a75809df0967b5a47', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 14:44:13')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 14:44:13', '2016-08-23 14:44:13')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 10:44:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 23ms (Views: 14.4ms | ActiveRecord: 3.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:44:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f93ae39a18060bb9d5dcdf21b3a0f81' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 14:44:13')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '0f93ae39a18060bb9d5dcdf21b3a0f81', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 14:44:13')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 14:44:13', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mReferent Load (1.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (8.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.5ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (4.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 26.0ms | ActiveRecord: 9.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:44:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ff386bc8875fdd057f6a320eb148c95' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 14:44:13')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2ff386bc8875fdd057f6a320eb148c95', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 14:44:13', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mReferent Load (2.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 54ms (Views: 20.3ms | ActiveRecord: 7.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:44:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23133fbdcba7c23f8f2356896137bd8b' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 14:44:13')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '23133fbdcba7c23f8f2356896137bd8b', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 14:44:13', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (3.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mReferent Load (1.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 51ms (Views: 18.7ms | ActiveRecord: 7.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:44:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e57564c3711b9206f380f57a30a2183b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 14:44:13')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e57564c3711b9206f380f57a30a2183b', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 14:44:13', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:44:13')
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.0ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 51ms (Views: 16.9ms | ActiveRecord: 6.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:44:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f732b69e1ec37f2c27561c3302cae2cf' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 14:44:13')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f732b69e1ec37f2c27561c3302cae2cf', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 14:44:13', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.3ms)[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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.8ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 54ms (Views: 14.8ms | ActiveRecord: 7.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 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '093b3ba3903c14e62d1c819addcccd25' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 14:44:13')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '093b3ba3903c14e62d1c819addcccd25', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 10
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 10\n', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
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=2016-08-23T10%3A44%3A13-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.7ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e9fa81d79c1f75ac062a6e257bba300' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:44:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8e9fa81d79c1f75ac062a6e257bba300', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 14:44:13')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 11, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 9\n', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T10%3A44%3A13-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.1ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ac886dfd9e18814e8ee8b41fadbad08c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 14:44:13')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ac886dfd9e18814e8ee8b41fadbad08c', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:44:13')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 12, '2016-08-23 14:44:13', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T10%3A44%3A13-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 2.4ms)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36mDispatchedService Load (1.9ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96f97c2e6a9846a8009fba52afd48498' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:44:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 14:44:13')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '96f97c2e6a9846a8009fba52afd48498', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 14:44:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:44:13')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 13, '2016-08-23 14:44:13', '2016-08-23 14:44:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:44:13')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Redirected to http://example.org
Completed 302 Found in 10ms (ActiveRecord: 2.6ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bef5b683bd451e13737b8f4f118a687d' 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 (0.4ms)[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 (5.3ms)[0m [1mBEGIN[0m
[1m[35m (2.1ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:44:14' WHERE `dispatched_services`.`id` = 11
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:44:14')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 14:44:14')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', 'bef5b683bd451e13737b8f4f118a687d', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 14, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"14"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '945125902f2ed72b8ee633175b5f2f6c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:44:14')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 14:44:14')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '945125902f2ed72b8ee633175b5f2f6c', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 14:44:14')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 15, '2016-08-23 14:44:14', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:44:14')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Rendered text template (0.0ms)
Completed 403 Forbidden in 11ms (Views: 0.3ms | ActiveRecord: 2.3ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '70bb230ad107f27246f64c6f76041282' 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 (0.4ms)[0m [1mSELECT `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[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:14')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:44:14' WHERE `dispatched_services`.`id` = 12[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:44:14')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 14:44:14')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.5ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '70bb230ad107f27246f64c6f76041282', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T10%3A44%3A14-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed3af432efd0853ba571c75603c82a5b' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 17, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 17, '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ed3af432efd0853ba571c75603c82a5b', 'e7e9149c1fdfcd3be6736b651a0064bb', 17, '0.0.0.0', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 17, 'test_holding', 'holding', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 14:44:14', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a9bdfe732c1bf4a7b589a496b9e9a78' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:44:14')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2016-08-23 14:44:14')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3a9bdfe732c1bf4a7b589a496b9e9a78', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2016-08-23 14:44:14')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 18, 'test_holding', 'holding', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 14:44:14', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '201b5cb4ae2511c90dae3a50f8834ce5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '201b5cb4ae2511c90dae3a50f8834ce5', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', '2016-08-23 14:44:14')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 14:44:14', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b004570f1554813b9cecb36ea885e0a5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:44:14')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 20, '2016-08-23 14:44:14')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 20, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.1ms)[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, 20, '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 20, '2016-08-23 14:44:14')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b004570f1554813b9cecb36ea885e0a5', 'd95884a882a64501650fb8f9deae5104', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 14:44:14', '2016-08-23 14:44:14')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d957c1ed0ec6c6d496eb841825bf42d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 21, '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 21, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.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, 21, '2016-08-23 14:44:14')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 21, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 21, '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 21, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 21, '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 21, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 21, '2016-08-23 14:44:14')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6d957c1ed0ec6c6d496eb841825bf42d', '06d451b80bf9fe3ce6849a48c98522d7', 21, 'info:sid/google', '0.0.0.0', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 14:44:14', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 21 LIMIT 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9326561be24918508cd894a1932ee4e9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:44:14')
[1m[36mSQL (0.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, 22, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 22, '2016-08-23 14:44:14')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9326561be24918508cd894a1932ee4e9', '62590701c6f35b45309577ef8c8c22b4', 22, '0.0.0.0', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, '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', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d817895c17b695823148bf80065b6d4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 23, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 23, '2016-08-23 14:44:14')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0d817895c17b695823148bf80065b6d4', 'e7e9149c1fdfcd3be6736b651a0064bb', 23, '0.0.0.0', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (23, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 14:44:14', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e430b882aeb868da014991a0326597b6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:44:14')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 14:44:14')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e430b882aeb868da014991a0326597b6', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 14:44:14', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fdcc88fd05b343a395293efc2efcc9ff' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 14:44:14')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fdcc88fd05b343a395293efc2efcc9ff', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b9bdccbe0586aa897e5d6ca87c160d1a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 26, '2016-08-23 14:44:14')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b9bdccbe0586aa897e5d6ca87c160d1a', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 26, '0.0.0.0', '2016-08-23 14:44:14')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:44:14')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '260739677c0a7dc80886a77dbba30ee4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 27, '2016-08-23 14:44:14')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '260739677c0a7dc80886a77dbba30ee4', '9902a1d22a141a826ae31b1c83cb928c', 27, '0.0.0.0', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:44:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84ff48c3ca6a2ae66f29b3af90fc05c0' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:44:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 14:44:14')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '84ff48c3ca6a2ae66f29b3af90fc05c0', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:44:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.9ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (10.4ms)[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 (15.5ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.4ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (16.5ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.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 (10.7ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (8.8ms)[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 (10.9ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.2ms)[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 (13.3ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.7ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.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 (11.8ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (11.2ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (13.5ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.0ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (12.1ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.4ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (10.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 (11.9ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.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 (9.4ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (11.7ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.7ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.1ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.8ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.8ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '38238b975f46d9915a8c3b391c545a5b' 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.1ms)[0m BEGIN
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 1, '2016-08-23 14:46:26')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 1, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 1, '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[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, 1, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 1, '2016-08-23 14:46:26')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 1, '2016-08-23 14:46:26')[0m
[1m[35m (1.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '38238b975f46d9915a8c3b391c545a5b', 'd95884a882a64501650fb8f9deae5104', 1, 'info:sid/google', '0.0.0.0', '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 14:46:26', '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eceff8164e54673a79c552f391e9f957' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 2, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 2, '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 2, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 2, '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 2, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 2, '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 2, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 2, '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 2, '2016-08-23 14:46:26')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'eceff8164e54673a79c552f391e9f957', '06d451b80bf9fe3ce6849a48c98522d7', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 14:46:26')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 14:46:26', '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 2 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3dff12471f6e267ace64fb9cb4443be0' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:46:26')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.1ms)[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, 3, '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 3, '2016-08-23 14:46:26')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3dff12471f6e267ace64fb9cb4443be0', '62590701c6f35b45309577ef8c8c22b4', 3, '0.0.0.0', '2016-08-23 14:46:26')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 14:46:26')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04fb68cbc8c8e3a51fd2481c401cd5d3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '04fb68cbc8c8e3a51fd2481c401cd5d3', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 14:46:26')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:46:26')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b0881de8662ae4720f97cebec27c8f5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:46:26')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 14:46:26')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1b0881de8662ae4720f97cebec27c8f5', '1f2487b5ab29a0f58587335258d7f8e0', 5, '0.0.0.0', '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05ed3cff3b4f0476f05fea1d2569b7d9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 14:46:26')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '05ed3cff3b4f0476f05fea1d2569b7d9', '9902a1d22a141a826ae31b1c83cb928c', 6, '0.0.0.0', '2016-08-23 14:46:26')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:46:26')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c6ea8aa7019a475ac1ecdaa108b3230' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:46:26')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 7, '2016-08-23 14:46:26')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7c6ea8aa7019a475ac1ecdaa108b3230', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 7, '0.0.0.0', '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:46:26 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21018399f3b6a5ad49907dc8abc02667' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:46:26')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 14:46:26')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '21018399f3b6a5ad49907dc8abc02667', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 14:46:26')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 8, '2016-08-23 14:46:26', '2016-08-23 14:46:26')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:46:26')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.5ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `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://rc.relais-host.com/\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:46:26' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (4.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (2.3ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (43.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (44.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (82.5ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (10.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (1.1ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 414ms (Views: 331.6ms | ActiveRecord: 8.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:46:27 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb419ab0b66ee5968c8b85f6763545c6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 14:46:27')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 9, '2016-08-23 14:46:27')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 9, '2016-08-23 14:46:27')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'eb419ab0b66ee5968c8b85f6763545c6', 'a03fb1fb17f24f5ea845bf6c4450490b', 9, '127.0.0.1', '2016-08-23 14:46:27')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 14:46:27', '2016-08-23 14:46:27')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, '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', '2016-08-23 14:46:27')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:46:27' WHERE `dispatched_services`.`id` = 4
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 61ms (Views: 22.6ms | ActiveRecord: 6.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 2016-08-23 10:46:27 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4689b1cf1aabeee02cb407081e09ea8c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:46:27')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 10, '2016-08-23 14:46:27')
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 10, '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4689b1cf1aabeee02cb407081e09ea8c', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 14:46:27')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 14:46:27', '2016-08-23 14:46:27')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:46:27' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[35mDispatchedService Load (3.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms)
[1m[36mPermalink Load (0.6ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 48ms (Views: 16.4ms | ActiveRecord: 6.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fed9eabd24ff2994d6f640c8f3aa794b' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 14:46:27')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fed9eabd24ff2994d6f640c8f3aa794b', '318e542032e1812e600e07efbdb1dfcc', 11, '0.0.0.0', '2016-08-23 14:46:27')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 11, '2016-08-23 14:46:27', '2016-08-23 14:46:27')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=11" for 127.0.0.1 at 2016-08-23 10:46:27 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"11"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 25ms (Views: 16.0ms | ActiveRecord: 3.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:46:27 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a34fe8dce85ba6554cd834a05f622cc' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36mSQL (0.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', '0a34fe8dce85ba6554cd834a05f622cc', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 14:46:27', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:46:27')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 30ms (ActiveRecord: 3.3ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:46:27 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df973a2f28ac66b0e22036a160507406' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 13, '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'df973a2f28ac66b0e22036a160507406', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 14:46:27')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 14:46:27', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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 (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:46:27')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 3.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:46:27 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '222a71ff1f93b2d5fbd4a441510d709d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '222a71ff1f93b2d5fbd4a441510d709d', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 14:46:27', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 3 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 52ms (ActiveRecord: 3.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:46:27 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ac7f84603c47e72c9ea08cbe2c124db' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 14:46:27')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1ac7f84603c47e72c9ea08cbe2c124db', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 14:46:27', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36mServiceResponse Load (0.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 3 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 33ms (ActiveRecord: 3.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:46:27 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfe3730c5356549ccd2266b25131f0fc' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 14:46:27')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'dfe3730c5356549ccd2266b25131f0fc', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 14:46:27', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:46:27')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 38ms (ActiveRecord: 2.8ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99680848088dad042bc4563a29ba2e68' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:46:27')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 14:46:27')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '99680848088dad042bc4563a29ba2e68', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 14:46:27', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3c0868d69ac3dd65f92d41989b7a898c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2016-08-23 14:46:27')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3c0868d69ac3dd65f92d41989b7a898c', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 14:46:27', '2016-08-23 14:46:27')[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a171a0ec7564598f22df983f00e13a2e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2016-08-23 14:46:27')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a171a0ec7564598f22df983f00e13a2e', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 19, 'test_holding', 'holding', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:46:27')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 14:46:27', '2016-08-23 14:46:27')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9715214ec0f607090cec7c748c15ece' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:46:27')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2016-08-23 14:46:27')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd9715214ec0f607090cec7c748c15ece', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'test_holding', 'holding', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:46:27')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 14:46:27', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d56d96516de170223738ae29675d1a2' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 14:46:27')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4d56d96516de170223738ae29675d1a2', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (21, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 14:46:27', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 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 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 (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49c8b378bd053487b6323f5a6adb350e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '49c8b378bd053487b6323f5a6adb350e', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.1ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:46:27')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T10%3A46%3A27-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.2ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbf4a4b90748e3ea8329c95958df3d60' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:46:27')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'bbf4a4b90748e3ea8329c95958df3d60', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 14:46:27')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[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 23
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 23\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T10%3A46%3A27-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd66fa37912c80fc91cd5375b47ccd247' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd66fa37912c80fc91cd5375b47ccd247', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:46:27')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 14:46:27', '2016-08-23 14:46:27')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T10%3A46%3A27-04%3A00&ctx_id=&ctx_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 12ms (ActiveRecord: 2.5ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://rc.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=\",\"PartnershipId\":\"BD\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `yield\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:46:27' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05011d8e8b85dbf7d3660d1cdca23cc8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 14:46:27')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '05011d8e8b85dbf7d3660d1cdca23cc8', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 14:46:27')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 14:46:27', '2016-08-23 14:46:27')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:46:27')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://example.org
Completed 302 Found in 10ms (ActiveRecord: 2.0ms)
---------------------------------------------------------------------------------
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://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '121a656389766feb0a4f493ef913e2ee' 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 (0.3ms)[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 (1.9ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://rc.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=\",\"PartnershipId\":\"BD\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `yield\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:46:27' WHERE `dispatched_services`.`id` = 18
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:46:27')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 14:46:27')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.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', '121a656389766feb0a4f493ef913e2ee', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:46:27')
[1m[36m (1.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8abd141c48e1517775cabeaef5c8f1eb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:46:27')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8abd141c48e1517775cabeaef5c8f1eb', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 14:46:27', '2016-08-23 14:46:27')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 9ms (Views: 0.3ms | ActiveRecord: 2.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://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '974a7fb837c7bc238ecada053f639ce7' 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 (0.4ms)[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[35m (1.9ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.6ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://rc.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=\",\"PartnershipId\":\"BD\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `yield\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:46:27' WHERE `dispatched_services`.`id` = 19[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:46:27')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 14:46:27')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '974a7fb837c7bc238ecada053f639ce7', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 14:46:27')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:46:27')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)
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=2016-08-23T10%3A46%3A27-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 1.4ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (17.5ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (10.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 (9.2ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.0ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.1ms)[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 (11.5ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.7ms)[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 (13.3ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.5ms)[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 (10.6ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.7ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.3ms)[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 (11.2ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (13.2ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (11.9ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.5ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (12.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 (11.0ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.5ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.9ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.7ms)[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 (11.4ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.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 (9.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 (11.2ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.6ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.5ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (10.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.0ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0147380905aeca3038496273b0d2e792' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:47:08')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 14:47:08')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0147380905aeca3038496273b0d2e792', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 14:47:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (1, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:47:08')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 14:47:08')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 14:47:08', '2016-08-23 14:47:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '646b17e21f8a438f281d2fefa5543376' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:47:08')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2016-08-23 14:47:08')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '646b17e21f8a438f281d2fefa5543376', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2016-08-23 14:47:08')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'test_holding', 'holding', '2016-08-23 14:47:08')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 14:47:08')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 14:47:08', '2016-08-23 14:47:08')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'adaff7f3d3c0f412eeb4538534d92f19' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:47:08')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2016-08-23 14:47:08')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'adaff7f3d3c0f412eeb4538534d92f19', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2016-08-23 14:47:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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', '2016-08-23 14:47:08')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 14:47:08', '2016-08-23 14:47:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'faf781366566efffd5e6fd9474ed6c58' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:47:08')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 4, '2016-08-23 14:47:08')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 4, '2016-08-23 14:47:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'faf781366566efffd5e6fd9474ed6c58', 'e7e9149c1fdfcd3be6736b651a0064bb', 4, '0.0.0.0', '2016-08-23 14:47:08')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 4, 'test_holding', 'holding', '2016-08-23 14:47:08')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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%22title%22', '2016-08-23 14:47:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 14:47:08', '2016-08-23 14:47:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[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 10ms (Views: 4.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07ba8c5d11ba7b721073f6d07ba8d897' 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.1ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:47:08')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 14:47:08')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '07ba8c5d11ba7b721073f6d07ba8d897', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 14:47:08')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 5
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 5\n', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:47:08')[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Redirected to http://test.host/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=2016-08-23T10%3A47%3A08-04%3A00&ctx_id=&ctx_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 16ms (ActiveRecord: 7.2ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a86d1f08b86c50fbd1bfb1a70e28bb76' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:47:08')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 14:47:08')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a86d1f08b86c50fbd1bfb1a70e28bb76', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 14:47:08')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:47:08')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 9\n', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:47:08')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Redirected to http://test.host/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=2016-08-23T10%3A47%3A08-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.1ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bad0028b629e40e86b255ec37cff3b84' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:08')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:47:08')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 14:47:08')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'bad0028b629e40e86b255ec37cff3b84', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 14:47:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:47:08')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 7, '2016-08-23 14:47:08', '2016-08-23 14:47:08')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:47:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Redirected to http://test.host/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=2016-08-23T10%3A47%3A08-04%3A00&ctx_id=&ctx_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 14ms (ActiveRecord: 2.2ms)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error PUBAZ006: Invalid API key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:47:09' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b580d3385e3701dbaa86d198f292cd6' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:47:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 14:47:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3b580d3385e3701dbaa86d198f292cd6', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 14:47:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 8, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:47:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2016-08-23 14:47:09', '2016-08-23 14:47:09')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:47:09')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Redirected to http://example.org
Completed 302 Found in 19ms (ActiveRecord: 5.0ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1aa3b0eae2322bec4b2355d2167ebb04' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:47:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 14:47:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1aa3b0eae2322bec4b2355d2167ebb04', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 14:47:09')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 9, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:47:09')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:47:09')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1099eeb442cedb35c5985fa1f09ff626' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:47:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 14:47:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '1099eeb442cedb35c5985fa1f09ff626', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 14:47:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:47:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (12.0ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 10, '2016-08-23 14:47:09', '2016-08-23 14:47:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:47:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 22ms (Views: 0.3ms | ActiveRecord: 14.1ms)
----------------------------------------------------------------------------
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://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '051ca8eab60fe98827151f446d22c82a' 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 (0.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 (2.1ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:09')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://rc.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"zKxFYbF4BJiRQb34VnmiBWxDL0seekE9LuEIP5Qt+sr+cSpS06w=\",\"PartnershipId\":\"BD\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `yield\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:47:09' WHERE `dispatched_services`.`id` = 7
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:47:09')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 14:47:09')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.7ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.8ms)[0m COMMIT
[1m[36mSQL (0.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', '051ca8eab60fe98827151f446d22c82a', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 14:47:09')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:47:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T10%3A47%3A09-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:47:09 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f979d0b496e18f2efd052702928c9d9a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:47:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 14:47:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f979d0b496e18f2efd052702928c9d9a', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:47:09')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 12, '2016-08-23 14:47:09', '2016-08-23 14:47:09')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (1.8ms)[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=', '2016-08-23 14:47:10')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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://rc.relais-host.com/\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:47:10' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (5.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.6ms)
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (11.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (58.2ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (6.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 348ms (Views: 286.6ms | ActiveRecord: 6.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:47:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c272d48d5fcda690e97f13c9b326d8ad' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:47:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 14:47:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 13, '2016-08-23 14:47:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 13, '2016-08-23 14:47:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 13, '2016-08-23 14:47:10')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c272d48d5fcda690e97f13c9b326d8ad', 'a03fb1fb17f24f5ea845bf6c4450490b', 13, '127.0.0.1', '2016-08-23 14:47:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 14:47:10', '2016-08-23 14:47:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (1.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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 (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, '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', '2016-08-23 14:47:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:47:10' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mReferent Load (0.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.7ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (6.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 58ms (Views: 18.8ms | ActiveRecord: 9.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 2016-08-23 10:47:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fca0ef11aece949a60fb23e5cbfdaecc' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:47:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:47:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 14, '2016-08-23 14:47:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 14, '2016-08-23 14:47:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 14, '2016-08-23 14:47:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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?genre=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'fca0ef11aece949a60fb23e5cbfdaecc', 'bc13b80c2923ce2cbe0c8347141587a7', 14, '127.0.0.1', '2016-08-23 14:47:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 14:47:10', '2016-08-23 14:47:10')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:47:10' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 49ms (Views: 16.5ms | ActiveRecord: 6.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '016462437727a0548db47c2227b4e693' 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 (3.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:47:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 15, '2016-08-23 14:47:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 15, '2016-08-23 14:47:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 15, '2016-08-23 14:47:10')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '016462437727a0548db47c2227b4e693', '318e542032e1812e600e07efbdb1dfcc', 15, '0.0.0.0', '2016-08-23 14:47:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 15, '2016-08-23 14:47:10', '2016-08-23 14:47:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=15" for 127.0.0.1 at 2016-08-23 10:47:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"15"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mReferent Load (0.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 25ms (Views: 16.5ms | ActiveRecord: 3.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:47:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a09914fc545704dd9d1abea4ff175d0c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:47:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 14:47:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a09914fc545704dd9d1abea4ff175d0c', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 14:47:10')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 14:47:10', '2016-08-23 14:47:10')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:47:10')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect: Error placing request: BorrowDirect::Error PUBAZ006: Invalid API key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:47:10' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14
[1m[36m (7.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:47:11' WHERE `dispatched_services`.`id` = 12
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (6.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.8ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 696ms (Views: 21.3ms | ActiveRecord: 6.3ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:47:11 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ad8f6db4edb63473c1a50f7186540614' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:47:11')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:47:11')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 17, '2016-08-23 14:47:11')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ad8f6db4edb63473c1a50f7186540614', '9902a1d22a141a826ae31b1c83cb928c', 17, '127.0.0.1', '2016-08-23 14:47:11')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 14:47:11', '2016-08-23 14:47:11')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:47:11')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:47:11' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mDispatchedService Load (2.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.4ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (7.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (4.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (10.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/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` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (33.8ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 716ms (Views: 31.6ms | ActiveRecord: 9.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:47:11 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '486d849f95578df000ea24e492e35de0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:11')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:47:11')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 14:47:11')[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '486d849f95578df000ea24e492e35de0', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2016-08-23 14:47:11')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 14:47:11', '2016-08-23 14:47:11')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:47:11')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:47:12' WHERE `dispatched_services`.`id` = 14
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 702ms (Views: 18.9ms | ActiveRecord: 18.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:47:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34e438d3a70dd3ca8d6b75eb17c8a228' 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 (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:47:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 14:47:12')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '34e438d3a70dd3ca8d6b75eb17c8a228', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 14:47:12')[0m
[1m[35m (4.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 14:47:12', '2016-08-23 14:47:12')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)[0m
[1m[35mDispatchedService Load (1.0ms)[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[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:47:12')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.5ms)[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.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:47:13' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 704ms (Views: 17.6ms | ActiveRecord: 15.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:47:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08825808718121e1a526701f6397fad2' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:47:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 14:47:13')
[1m[36m (12.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (0.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', '08825808718121e1a526701f6397fad2', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 14:47:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 14:47:13', '2016-08-23 14:47:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:47:13')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:47:14' WHERE `dispatched_services`.`id` = 16[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 732ms (Views: 16.0ms | ActiveRecord: 19.8ms)
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5533e73c1e504553f864dbb976892b46' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:47:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 14:47:14')[0m
[1m[35m (12.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5533e73c1e504553f864dbb976892b46', '1f2487b5ab29a0f58587335258d7f8e0', 21, '0.0.0.0', '2016-08-23 14:47:14')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:47:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 14:47:14', '2016-08-23 14:47:14')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44922a8a506f1f548870f85331a70ebd' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:47:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:47:14')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 22, '2016-08-23 14:47:14')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '44922a8a506f1f548870f85331a70ebd', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 22, '0.0.0.0', '2016-08-23 14:47:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:47:14')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 22, '2016-08-23 14:47:14', '2016-08-23 14:47:14')
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:208:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:205:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:47:14' WHERE `dispatched_services`.`id` = 18[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5355c53ab97729e5171709632a9921b2' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:47:14')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:47:14')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 23, '2016-08-23 14:47:14')
[1m[36m (11.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5355c53ab97729e5171709632a9921b2', '9902a1d22a141a826ae31b1c83cb928c', 23, '0.0.0.0', '2016-08-23 14:47:14')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:47:14')[0m
[1m[35m (0.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 23, '2016-08-23 14:47:15', '2016-08-23 14:47:15')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:196:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:193:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:47:15' WHERE `dispatched_services`.`id` = 19
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7992feaa824cd44353aba5188ee15183' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:47:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 14:47:15')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7992feaa824cd44353aba5188ee15183', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2016-08-23 14:47:15')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:47:15')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 24, '2016-08-23 14:47:15', '2016-08-23 14:47:15')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:47:15' WHERE `dispatched_services`.`id` = 20[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c84d14628cd571a90668df23c41a867f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:47:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 14:47:15')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'c84d14628cd571a90668df23c41a867f', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 14:47:15')[0m
[1m[35m (5.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:47:15')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.5ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 25, '2016-08-23 14:47:16', '2016-08-23 14:47:16')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:181:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:178:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:47:16' WHERE `dispatched_services`.`id` = 21
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '912c756809bf10145c0c83dff063109d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:47:16')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 26, '2016-08-23 14:47:16')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 26, '2016-08-23 14:47:16')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 26, '2016-08-23 14:47:16')
[1m[36mSQL (0.2ms)[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, '2016-08-23 14:47:16')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 26, '2016-08-23 14:47:16')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 26, '2016-08-23 14:47:16')[0m
[1m[35m (10.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '912c756809bf10145c0c83dff063109d', 'd95884a882a64501650fb8f9deae5104', 26, 'info:sid/google', '0.0.0.0', '2016-08-23 14:47:16')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 14:47:16')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 14:47:16', '2016-08-23 14:47:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53a9d8ce3e86f5de6cedf9db131245a7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:47:16')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:47:16')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2016-08-23 14:47:16')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2016-08-23 14:47:16')
[1m[36mSQL (0.2ms)[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, '2016-08-23 14:47:16')[0m
[1m[35mSQL (0.1ms)[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, '2016-08-23 14:47:16')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2016-08-23 14:47:16')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2016-08-23 14:47:16')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2016-08-23 14:47:16')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2016-08-23 14:47:16')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2016-08-23 14:47:16')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '53a9d8ce3e86f5de6cedf9db131245a7', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 14:47:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 14:47:16', '2016-08-23 14:47:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb985379260305e444350041f8a46f28' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:47:16')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:47:16')[0m
[1m[35mSQL (0.2ms)[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, '2016-08-23 14:47:16')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 28, '2016-08-23 14:47:16')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'eb985379260305e444350041f8a46f28', '62590701c6f35b45309577ef8c8c22b4', 28, '0.0.0.0', '2016-08-23 14:47:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 14:47:16')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (20.8ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (12.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 (12.4ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.6ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.9ms)[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 (14.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.5ms)[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 (10.7ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (8.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 (10.3ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (10.2ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.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 (10.2ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.1ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.2ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (8.4ms)[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 (10.6ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.3ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.0ms)[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 (10.8ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.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 (9.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (11.1ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (11.8ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.6ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.8ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
-----------------------------------------------------------------
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 13ms (Views: 5.2ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 24ms (Views: 0.3ms | ActiveRecord: 2.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd3f2ad5fc4b2a944dbb6c629791f28d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:04')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:48:04')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 14:48:04')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'cd3f2ad5fc4b2a944dbb6c629791f28d', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 14:48:04')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 1\n', 1, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:48:04')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Redirected to http://test.host/resolve?umlaut.request_id=1&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T10%3A48%3A04-04%3A00&ctx_id=&ctx_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 20ms (ActiveRecord: 2.4ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94104946ad845c411cc084cf27d552e7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '94104946ad845c411cc084cf27d552e7', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T10%3A48%3A05-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5eddb9e135c79a63497da3c2cc3e5aa' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 14:48:05')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b5eddb9e135c79a63497da3c2cc3e5aa', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T10%3A48%3A05-04%3A00&ctx_id=&ctx_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 32ms (ActiveRecord: 3.6ms)
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error PUBAZ006: Invalid API key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76a5390f338793078db252dc0b670dd8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '76a5390f338793078db252dc0b670dd8', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.7ms)[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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://example.org
Completed 302 Found in 15ms (ActiveRecord: 4.2ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '254dcf5476eb67fb95c21ee996fc5b7b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 14:48:05')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '254dcf5476eb67fb95c21ee996fc5b7b', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.7ms)[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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c2f519eb75e3e65ef4436d64702df356' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c2f519eb75e3e65ef4436d64702df356', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:48:05')[0m
[1m[35m (0.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[36mRequest Load (7.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 14:48:05')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 20ms (Views: 0.3ms | ActiveRecord: 9.3ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (3.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '122c0ede13476df669462f64f11bc03d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 14:48:05')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '122c0ede13476df669462f64f11bc03d', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Redirected to http://test.host/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=2016-08-23T10%3A48%3A05-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f30ef787c6dc300ca099faf4dde76f7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2f30ef787c6dc300ca099faf4dde76f7', '1f2487b5ab29a0f58587335258d7f8e0', 8, '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35m (7.4ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c84e19650f1ea02cb1b8bd1f30bab68' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 9, '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 9, '2016-08-23 14:48:05')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6c84e19650f1ea02cb1b8bd1f30bab68', 'e7e9149c1fdfcd3be6736b651a0064bb', 9, '0.0.0.0', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (9, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 14:48:05', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a061a85aa60487b37c73c06abfffaf8f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 10, '2016-08-23 14:48:05')
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 10, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.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, 10, '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 10, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 10, '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 10, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 10, '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 10, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 10, '2016-08-23 14:48:05')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a061a85aa60487b37c73c06abfffaf8f', '06d451b80bf9fe3ce6849a48c98522d7', 10, 'info:sid/google', '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 10 LIMIT 1
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8f24371a0012906896a8db68501abf0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:48:05')[0m
[1m[35mSQL (2.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:48:05')
[1m[36mSQL (0.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, 11, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 11, '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a8f24371a0012906896a8db68501abf0', '62590701c6f35b45309577ef8c8c22b4', 11, '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a295d7a5ab031e34c63910c297e0014' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 12, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 12, '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[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, 12, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 12, '2016-08-23 14:48:05')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1a295d7a5ab031e34c63910c297e0014', 'd95884a882a64501650fb8f9deae5104', 12, 'info:sid/google', '0.0.0.0', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, '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', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 14:48:05', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f12f72800f7ee7648ebf72d7fcc4d92' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4f12f72800f7ee7648ebf72d7fcc4d92', '1f2487b5ab29a0f58587335258d7f8e0', 13, '0.0.0.0', '2016-08-23 14:48:05')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:48:05')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 13, '2016-08-23 14:48:05', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ebb13b6e7a0046923eb020537c2b6074' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 14:48:05')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ebb13b6e7a0046923eb020537c2b6074', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 14, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:181:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:178:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c3efaab294b5dd47e836e51bde57be5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 15, '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9c3efaab294b5dd47e836e51bde57be5', '9902a1d22a141a826ae31b1c83cb928c', 15, '0.0.0.0', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 14:48:05')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 15, '2016-08-23 14:48:05', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:196:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:193:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21ace9444710a88944ef7e0ddac0b33d' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:48:05')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 16, '2016-08-23 14:48:05')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '21ace9444710a88944ef7e0ddac0b33d', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 16, '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:48:05')[0m
[1m[35m (1.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 16, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:208:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:205:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9dee3a024cebc957ea027822fd5f3f34' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 17, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 17, '2016-08-23 14:48:05')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9dee3a024cebc957ea027822fd5f3f34', 'e7e9149c1fdfcd3be6736b651a0064bb', 17, '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', 17, 'test_holding', 'holding', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 14:48:05', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db2cfc30c9bd007fd41d7b3b8cde8a3b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2016-08-23 14:48:05')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'db2cfc30c9bd007fd41d7b3b8cde8a3b', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2016-08-23 14:48:05')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9973963a55e5194d4d7b7e05f028ca1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2016-08-23 14:48:05')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c9973963a55e5194d4d7b7e05f028ca1', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2016-08-23 14:48:05')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:48:05 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16ef4b93eb289dd73a869974967907e7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 14:48:05')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '16ef4b93eb289dd73a869974967907e7', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 14:48:05')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 20, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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://rc.relais-host.com/\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (47.7ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAZ006: Invalid API key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[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[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (1.6ms)[0m COMMIT
ServiceResponses skipped for unknown service_ids: BorrowDirect
[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`, `created_at`) VALUES ('---\n:status: error\n', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:48:05')
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
BorrowDirect: Error placing request: BorrowDirect::Error PUBAZ006: Invalid API key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.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.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 3
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
ServiceResponses skipped for unknown service_ids: BorrowDirect
[1m[35m (0.5ms)[0m BEGIN
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:48:05')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 339ms (Views: 287.3ms | ActiveRecord: 5.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:48:05 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b00b8fbf66ebf94fc5ff4a9a115f1096' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 14:48:05')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 21, '2016-08-23 14:48:05')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 21, '2016-08-23 14:48:05')
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b00b8fbf66ebf94fc5ff4a9a115f1096', 'a03fb1fb17f24f5ea845bf6c4450490b', 21, '127.0.0.1', '2016-08-23 14:48:05')[0m
[1m[35m (4.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 14:48:05', '2016-08-23 14:48:05')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 14:48:05')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 16[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 63ms (Views: 17.7ms | ActiveRecord: 16.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 2016-08-23 10:48:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74fee536d57936eff024e31548b88890' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:48:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:48:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 22, '2016-08-23 14:48:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 22, '2016-08-23 14:48:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 22, '2016-08-23 14:48:06')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '74fee536d57936eff024e31548b88890', 'bc13b80c2923ce2cbe0c8347141587a7', 22, '127.0.0.1', '2016-08-23 14:48:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36m (0.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 14:48:06', '2016-08-23 14:48:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:48:06' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.2ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 41ms (Views: 12.1ms | ActiveRecord: 6.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cceae448b9d31de440de0ba5ff3ac682' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:48:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 14:48:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 23, '2016-08-23 14:48:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 23, '2016-08-23 14:48:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'cceae448b9d31de440de0ba5ff3ac682', '318e542032e1812e600e07efbdb1dfcc', 23, '0.0.0.0', '2016-08-23 14:48:06')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 23, '2016-08-23 14:48:06', '2016-08-23 14:48:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=23" for 127.0.0.1 at 2016-08-23 10:48:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"23"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.0ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 22ms (Views: 13.9ms | ActiveRecord: 3.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:48:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe76fd5fd5c29773fcb6b00cdbe99477' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:48:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 14:48:06')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fe76fd5fd5c29773fcb6b00cdbe99477', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 14:48:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 14:48:06', '2016-08-23 14:48:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:48:06')[0m
[1m[35m (0.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:48:06' WHERE `dispatched_services`.`id` = 19[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (35.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 75ms (Views: 36.2ms | ActiveRecord: 6.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:48:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '68c965bae9d4948f84829a0bd7b4c61e' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:48:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:48:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2016-08-23 14:48:06')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '68c965bae9d4948f84829a0bd7b4c61e', '9902a1d22a141a826ae31b1c83cb928c', 25, '127.0.0.1', '2016-08-23 14:48:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 14:48:06', '2016-08-23 14:48:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 20 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:48:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:48:06' WHERE `dispatched_services`.`id` = 20
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 68ms (Views: 16.3ms | ActiveRecord: 7.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:48:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '696deb76cbcd43c9a0796c57a5ae0448' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:48:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 14:48:06')
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '696deb76cbcd43c9a0796c57a5ae0448', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 14:48:06')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 26, '2016-08-23 14:48:06', '2016-08-23 14:48:06')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:48:06')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:48:06' WHERE `dispatched_services`.`id` = 21[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35mReferent Load (2.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (8.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 26
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 60ms (Views: 20.5ms | ActiveRecord: 7.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:48:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ffb323bc6619937f13498dbfc6fdc71' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:48:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 14:48:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9ffb323bc6619937f13498dbfc6fdc71', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 14:48:06')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 27, '2016-08-23 14:48:06', '2016-08-23 14:48:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`id` = 22 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:48:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:48:06' WHERE `dispatched_services`.`id` = 22
[1m[36m (12.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mReferent Load (2.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 71ms (Views: 17.1ms | ActiveRecord: 7.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:48:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '265a6c9e26020b40015160f192d2b14e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:48:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 14:48:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '265a6c9e26020b40015160f192d2b14e', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 14:48:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 28, '2016-08-23 14:48:06', '2016-08-23 14:48:06')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 23 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:48:06')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:48:06' WHERE `dispatched_services`.`id` = 23[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.0ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 28
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 53ms (Views: 15.7ms | ActiveRecord: 7.4ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.7ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (11.5ms)[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 (16.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (16.2ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (16.5ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.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 (12.4ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.9ms)[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 (10.9ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (8.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 (11.5ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (11.8ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (10.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 (11.0ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (11.6ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (14.0ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.8ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (11.3ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.9ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.2ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (8.7ms)[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 (11.1ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.1ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.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 (11.6ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.1ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (10.0ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.2ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd095e53f042fcac4ee5d2420e4373b99' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:50:44')[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:50:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 1, '2016-08-23 14:50:44')[0m
[1m[35m (2.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd095e53f042fcac4ee5d2420e4373b99', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 1, '0.0.0.0', '2016-08-23 14:50:44')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:50:44')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 1, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 14:50:51')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 14:50:51', '2016-08-23 14:50:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2c116da141270e7f01d7ad36f65c67d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:50:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:50:51')[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, 2, '2016-08-23 14:50:51')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[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', 'b2c116da141270e7f01d7ad36f65c67d', '9902a1d22a141a826ae31b1c83cb928c', 2, '0.0.0.0', '2016-08-23 14:50:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:50:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 14:51:01')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 14:51:01', '2016-08-23 14:51:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c00aec13b646f7aca40cf901d7c7db8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:51:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 3, '2016-08-23 14:51:01')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5c00aec13b646f7aca40cf901d7c7db8', '1f2487b5ab29a0f58587335258d7f8e0', 3, '0.0.0.0', '2016-08-23 14:51:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:51:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 3, '2016-08-23 14:51:02', '2016-08-23 14:51:02')
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:51:02' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acdaeaba4b00d3bd43ec3f8d96a79b5c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:02')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:51:02')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 14:51:02')
[1m[36m (9.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (3.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', 'acdaeaba4b00d3bd43ec3f8d96a79b5c', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 14:51:02')[0m
[1m[35m (4.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:51:02')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 4, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:06')
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 14:51:06', '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c7f3ee49bbcfa1fdc77d3f89f1b8be4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:51:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 5, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 5, '2016-08-23 14:51:06')
[1m[36m (5.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4c7f3ee49bbcfa1fdc77d3f89f1b8be4', 'e7e9149c1fdfcd3be6736b651a0064bb', 5, '0.0.0.0', '2016-08-23 14:51:06')[0m
[1m[35m (7.6ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'test_holding', 'holding', '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 14:51:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 14:51:06', '2016-08-23 14:51:06')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e1c1372f69c718f0dbc1dad75c7a1ae' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:51:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 6, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 6, '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5e1c1372f69c718f0dbc1dad75c7a1ae', 'e7e9149c1fdfcd3be6736b651a0064bb', 6, '0.0.0.0', '2016-08-23 14:51:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', 6, 'test_holding', 'holding', '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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%22title%22', '2016-08-23 14:51:06')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 14:51:06', '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c7ee88796933ccc939d2f2633bb2f8c2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:51:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 7, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 7, '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c7ee88796933ccc939d2f2633bb2f8c2', 'e7e9149c1fdfcd3be6736b651a0064bb', 7, '0.0.0.0', '2016-08-23 14:51:06')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 7, 'test_holding', 'holding', '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2016-08-23 14:51:06', '2016-08-23 14:51:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '443961adea721aba50d93b345e738914' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:51:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 8, '2016-08-23 14:51:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 8, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.2ms)[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, 8, '2016-08-23 14:51:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 8, '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '443961adea721aba50d93b345e738914', 'd95884a882a64501650fb8f9deae5104', 8, 'info:sid/google', '0.0.0.0', '2016-08-23 14:51:06')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 14:51:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 14:51:06', '2016-08-23 14:51:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '27a9481754496eec1f5bd397de9eee8f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:51:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 9, '2016-08-23 14:51:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 9, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 9, '2016-08-23 14:51:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 9, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 9, '2016-08-23 14:51:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 9, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 9, '2016-08-23 14:51:06')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 9, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 9, '2016-08-23 14:51:06')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '27a9481754496eec1f5bd397de9eee8f', '06d451b80bf9fe3ce6849a48c98522d7', 9, 'info:sid/google', '0.0.0.0', '2016-08-23 14:51:06')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 14:51:06', '2016-08-23 14:51:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mServiceResponse Exists (0.3ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 9 LIMIT 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b57025b391f8d5af9b5ded866fdd755' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:51:06')
[1m[36mSQL (0.2ms)[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, 10, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 10, '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7b57025b391f8d5af9b5ded866fdd755', '62590701c6f35b45309577ef8c8c22b4', 10, '0.0.0.0', '2016-08-23 14:51:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, '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', '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9fb98fd3b83cebe638d442f28320e778' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:51:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9fb98fd3b83cebe638d442f28320e778', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 14:51:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (11, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:51:06')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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%22title%22', '2016-08-23 14:51:06')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 14:51:06', '2016-08-23 14:51:06')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:06 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '679adde4d6adc05479abb37a4ccc5388' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:06')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:51:06')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 14:51:06')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '679adde4d6adc05479abb37a4ccc5388', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 12, '2016-08-23 14:51:06', '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.5ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:51:06')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:51:06' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (4.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.6ms)
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (6.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (49.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (6.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 336ms (Views: 267.0ms | ActiveRecord: 6.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:51:07 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54403fc134feff0a9b072de9be828ab9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:51:07')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 14:51:07')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 13, '2016-08-23 14:51:07')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 13, '2016-08-23 14:51:07')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 13, '2016-08-23 14:51:07')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '54403fc134feff0a9b072de9be828ab9', 'a03fb1fb17f24f5ea845bf6c4450490b', 13, '127.0.0.1', '2016-08-23 14:51:07')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 14:51:07', '2016-08-23 14:51:07')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, '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', '2016-08-23 14:51:07')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:07' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.0ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 53ms (Views: 14.2ms | ActiveRecord: 7.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 2016-08-23 10:51:07 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '75dfcbd37fdf82ba00eaba4a0d09ef33' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:51:07')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:51:07')
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 14, '2016-08-23 14:51:07')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 14, '2016-08-23 14:51:07')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 14, '2016-08-23 14:51:07')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '75dfcbd37fdf82ba00eaba4a0d09ef33', 'bc13b80c2923ce2cbe0c8347141587a7', 14, '127.0.0.1', '2016-08-23 14:51:07')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 14:51:07', '2016-08-23 14:51:07')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[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[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:07' WHERE `dispatched_services`.`id` = 13[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 45ms (Views: 12.7ms | ActiveRecord: 8.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2451c93dd4671d8e0d07a4886500da60' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:51:07')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 15, '2016-08-23 14:51:07')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 15, '2016-08-23 14:51:07')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 15, '2016-08-23 14:51:07')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2451c93dd4671d8e0d07a4886500da60', '318e542032e1812e600e07efbdb1dfcc', 15, '0.0.0.0', '2016-08-23 14:51:07')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 15, '2016-08-23 14:51:07', '2016-08-23 14:51:07')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=15" for 127.0.0.1 at 2016-08-23 10:51:07 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"15"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 23ms (Views: 14.2ms | ActiveRecord: 2.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:07 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3100c582912a4789824eb0b30ca30bfd' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:07')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:51:07')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 14:51:07')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '3100c582912a4789824eb0b30ca30bfd', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 14:51:07')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 14:51:07', '2016-08-23 14:51:07')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:07')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 16, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:12')
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:12' WHERE `dispatched_services`.`id` = 15
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 [["id", 16]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 5412ms (Views: 39.6ms | ActiveRecord: 6.2ms)
Started GET "/borrow_direct/BorrowDirect/16?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 10:51:12 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36mDispatchedService Load (0.4ms)[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.3ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 14:51:12' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (12.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:12')
[1m[36m (5.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Redirected to http://www.example.com/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=2016-08-23T10%3A51%3A12-04%3A00&ctx_id=&ctx_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 37ms (ActiveRecord: 19.9ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:51:13' WHERE `dispatched_services`.`id` = 15
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21[0m
[1m[35m (0.3ms)[0m COMMIT
Started GET "/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=2016-08-23T10%3A51%3A12-04%3A00&ctx_id=&ctx_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 2016-08-23 10:51:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"16", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T10:51:12-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.3ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 36ms (Views: 26.6ms | ActiveRecord: 3.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:51:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '57950459764bbf2214e266ec42705901' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:51:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:51:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 17, '2016-08-23 14:51:13')
[1m[36m (12.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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=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', '57950459764bbf2214e266ec42705901', '9902a1d22a141a826ae31b1c83cb928c', 17, '127.0.0.1', '2016-08-23 14:51:13')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 14:51:13', '2016-08-23 14:51:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 14:51:18')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:18' WHERE `dispatched_services`.`id` = 16
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.8ms)
[1m[36mPermalink Load (0.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 4097ms (Views: 16.7ms | ActiveRecord: 18.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:18 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43384633cd029b3b3a2bcbd12c6737c7' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:51:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 14:51:18')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '43384633cd029b3b3a2bcbd12c6737c7', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2016-08-23 14:51:18')[0m
[1m[35m (4.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 14:51:18', '2016-08-23 14:51:18')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 18, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:22')
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:22' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m [["id", 18]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 4130ms (Views: 18.9ms | ActiveRecord: 17.0ms)
Started GET "/borrow_direct/BorrowDirect/18?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 10:51:22 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 14:51:22' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:51:22')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
Redirected to http://www.example.com/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=2016-08-23T10%3A51%3A22-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 2.7ms)
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:26' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000415\n' WHERE `service_responses`.`id` = 26
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Started GET "/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=2016-08-23T10%3A51%3A22-04%3A00&ctx_id=&ctx_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 2016-08-23 10:51:26 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"18", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T10:51:22-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 24ms (Views: 14.8ms | ActiveRecord: 3.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:26 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f82d2f4c04583175b1c51719d2564835' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:26')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:51:26')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 14:51:26')
[1m[36m (5.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f82d2f4c04583175b1c51719d2564835', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 14:51:26')[0m
[1m[35m (10.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 14:51:26', '2016-08-23 14:51:26')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (1.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 18 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:26')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 19, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:30')
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:30' WHERE `dispatched_services`.`id` = 18
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 [["id", 19]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.6ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 4191ms (Views: 16.9ms | ActiveRecord: 21.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '261ebd889056d6c2a6acd5006516cfc2' 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.3ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:51:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 14:51:30')[0m
[1m[35m (12.2ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '261ebd889056d6c2a6acd5006516cfc2', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 14:51:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 14:51:30', '2016-08-23 14:51:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 20, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:35')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:35' WHERE `dispatched_services`.`id` = 19[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m [["id", 20]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.0ms)
[1m[36mPermalink Load (0.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 4191ms (Views: 16.6ms | ActiveRecord: 18.2ms)
Started GET "/borrow_direct/BorrowDirect/20" for 127.0.0.1 at 2016-08-23 10:51:35 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.1ms)[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', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:35')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Redirected to http://www.example.com/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=2016-08-23T10%3A51%3A35-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 3.0ms)
Started GET "/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=2016-08-23T10%3A51%3A35-04%3A00&ctx_id=&ctx_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 2016-08-23 10:51:35 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"20", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T10:51:35-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m [["id", 20]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (21.0ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 40ms (Views: 22.2ms | ActiveRecord: 3.6ms)
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '823dde0b5b69d0edc619547baea3df5c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:35')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:51:35')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 14:51:35')
[1m[36m (12.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '823dde0b5b69d0edc619547baea3df5c', '1f2487b5ab29a0f58587335258d7f8e0', 21, '0.0.0.0', '2016-08-23 14:51:35')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:51:35')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 14:51:35', '2016-08-23 14:51:35')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.2ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd819c79a99393565906325793c7af0e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:35')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:51:35')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 14:51:35')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'cd819c79a99393565906325793c7af0e', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 14:51:35')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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 22\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:35')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T10%3A51%3A35-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0efa2eabb571a4e785225b12917b9c40' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:35')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:51:35')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 14:51:35')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0efa2eabb571a4e785225b12917b9c40', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 14:51:35')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:51:35')[0m
[1m[35m (0.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 34\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:35')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T10%3A51%3A35-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e60b93530ad48cd8dd5216a19b58706' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:35')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:51:35')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 14:51:35')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4e60b93530ad48cd8dd5216a19b58706', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 14:51:35')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:51:35')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 14:51:35', '2016-08-23 14:51:35')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:35')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T10%3A51%3A35-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 2.2ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mServiceResponse Load (0.2ms)[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"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:51:39' WHERE `dispatched_services`.`id` = 21[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6269322bef5c3c041751f92a148bbbae' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:39')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:51:39')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 14:51:39')
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '6269322bef5c3c041751f92a148bbbae', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 14:51:39')[0m
[1m[35m (11.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:51:39')
[1m[36m (0.3ms)[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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 14:51:39', '2016-08-23 14:51:39')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:51:39')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://example.org
Completed 302 Found in 12ms (ActiveRecord: 2.3ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb95b7ece44cd801135c6091db8a46d6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:39')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:51:39')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 14:51:39')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'cb95b7ece44cd801135c6091db8a46d6', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 14:51:39')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:51:39')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fdb94355d9a36a51a8fb6ed268f4d3c3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:40')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:51:40')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 14:51:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (11.0ms)[0m BEGIN
[1m[36mSQL (0.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', 'fdb94355d9a36a51a8fb6ed268f4d3c3', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 14:51:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:51:40')
[1m[36m (0.2ms)[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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 14:51:40', '2016-08-23 14:51:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:51:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (0.1ms)[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 10ms (Views: 0.3ms | ActiveRecord: 2.1ms)
----------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bce71763e498b2a00fbe3f7eb503d701' 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 (0.4ms)[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 (1.8ms)[0m [1mBEGIN[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:40')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `yield\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:51:40' WHERE `dispatched_services`.`id` = 23
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:51:40')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 14:51:40')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 43
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', 'bce71763e498b2a00fbe3f7eb503d701', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 14:51:40')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 14:51:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T10%3A51%3A40-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.1ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (17.9ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.6ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (7.6ms)[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 (11.5ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.9ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.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 (11.2ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.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 (11.8ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (10.4ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (10.3ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (7.3ms)[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 (10.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (33.3ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (15.7ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (19.9ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (20.3ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (22.8ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (17.4ms)[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 (15.9ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.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 (11.7ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.4ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (10.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 (12.1ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.6ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.9ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.7ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.4ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (12.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36m (0.2ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '86c3c8b31b7d111f8248bdcb772ccc4b' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 1, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 1, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 1, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 1, '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 1, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 1, '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 1, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 1, '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 1, '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '86c3c8b31b7d111f8248bdcb772ccc4b', '06d451b80bf9fe3ce6849a48c98522d7', 1, 'info:sid/google', '0.0.0.0', '2016-08-23 14:51:51')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[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, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 1 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14acc1f5387380afabf558429a2d2bf5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[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, 2, '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 2, '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '14acc1f5387380afabf558429a2d2bf5', '62590701c6f35b45309577ef8c8c22b4', 2, '0.0.0.0', '2016-08-23 14:51:51')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, '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', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c4237efedcb991ffdea72b37d8a34805' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 3, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 3, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[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, 3, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 3, '2016-08-23 14:51:51')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c4237efedcb991ffdea72b37d8a34805', 'd95884a882a64501650fb8f9deae5104', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 14:51:51', '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7550b901edc9f42b39aba02279ba2a03' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 14:51:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7550b901edc9f42b39aba02279ba2a03', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 14:51:51', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[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 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10d465020ffcba938dbd555d617c213b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '10d465020ffcba938dbd555d617c213b', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 5
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 5\n', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Redirected to http://test.host/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=2016-08-23T10%3A51%3A51-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 1.4ms)
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34399dd502ad1c91fff0a21215d829b5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '34399dd502ad1c91fff0a21215d829b5', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:51:51')[0m
[1m[35m (0.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 5
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 5\n', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Redirected to http://test.host/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=2016-08-23T10%3A51%3A51-04%3A00&ctx_id=&ctx_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 9ms (ActiveRecord: 1.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'afa5c1e7a6282440119df9239074f1a7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 14:51:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'afa5c1e7a6282440119df9239074f1a7', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 7, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Redirected to http://test.host/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=2016-08-23T10%3A51%3A51-04%3A00&ctx_id=&ctx_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"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 23ms (ActiveRecord: 2.0ms)
[1m[36mDispatchedService Load (0.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mDispatchedService Load (0.7ms)[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[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:51:51' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 8
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a64cfa7806f53f6e317ec02f14344ef0' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 14:51:51')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a64cfa7806f53f6e317ec02f14344ef0', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 8, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Redirected to http://example.org
Completed 302 Found in 12ms (ActiveRecord: 4.2ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `yield'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39146cb18eeb7d0da0e15b689ba1fa33' 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 (0.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 (6.4ms)[0m [1mBEGIN[0m
[1m[35m (2.1ms)[0m BEGIN
[1m[36mSQL (2.9ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `call\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `yield\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:51:51' WHERE `dispatched_services`.`id` = 5
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:51:51')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 14:51:51')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.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', '39146cb18eeb7d0da0e15b689ba1fa33', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6e2a5c8a5ad6f62ab668db6334cbcb7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e6e2a5c8a5ad6f62ab668db6334cbcb7', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 10, '2016-08-23 14:51:51', '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 19ms (Views: 0.4ms | ActiveRecord: 2.4ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f8ed03884e35696a1d441a98098cc07' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 14:51:51')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5f8ed03884e35696a1d441a98098cc07', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.1ms)[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=2016-08-23T10%3A51%3A51-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 1.3ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ccbbc2627a8708fda018e1bc5b09f75' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 12, '2016-08-23 14:51:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (11.2ms)[0m BEGIN
[1m[36mSQL (0.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', '7ccbbc2627a8708fda018e1bc5b09f75', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 12, '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c00106866d06229042b2eb50e511a78a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c00106866d06229042b2eb50e511a78a', '1f2487b5ab29a0f58587335258d7f8e0', 13, '0.0.0.0', '2016-08-23 14:51:51')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 13, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 14:51:51', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8487c6c5e768649c4c4d4e30ddeaa35c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '8487c6c5e768649c4c4d4e30ddeaa35c', '9902a1d22a141a826ae31b1c83cb928c', 14, '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 14, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '968fa1c245ad02abe9d2309adeda0f73' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 14:51:51')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '968fa1c245ad02abe9d2309adeda0f73', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[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=', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 15, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 14:51:51' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e08dbe9d2b8479b4e6852acadf1ca59' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 16, '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 16, '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6e08dbe9d2b8479b4e6852acadf1ca59', 'e7e9149c1fdfcd3be6736b651a0064bb', 16, '0.0.0.0', '2016-08-23 14:51:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (16, '--- {}\n', 'test_holding', 'holding', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '468fbc77c06e6a4e4221405907b38a85' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 17, '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 17, '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '468fbc77c06e6a4e4221405907b38a85', 'e7e9149c1fdfcd3be6736b651a0064bb', 17, '0.0.0.0', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 17, 'test_holding', 'holding', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc2c89387fef8220daea110569d97e6a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'cc2c89387fef8220daea110569d97e6a', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'test_holding', 'holding', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '56df4c1a3b8bc586a7eacb022e42183e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:51:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2016-08-23 14:51:51')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '56df4c1a3b8bc586a7eacb022e42183e', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2016-08-23 14:51:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'test_holding', 'holding', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:51 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1e2407c724d55b63a667ff2874b0169' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:51:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 14:51:51')[0m
[1m[35m (5.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd1e2407c724d55b63a667ff2874b0169', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 14:51:51')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 20, '2016-08-23 14:51:51', '2016-08-23 14:51:51')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 14:51:51')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 15
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect: Error placing request: BorrowDirect::Error PUBAZ006: Invalid API key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.7ms)[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[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35m (3.2ms)[0m BEGIN
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mSQL (3.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
ServiceResponses skipped for unknown service_ids: BorrowDirect
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
[1m[36m (0.4ms)[0m [1mBEGIN[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (6.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (49.2ms)
[1m[35mSQL (0.6ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:52')
[1m[36m (23.2ms)[0m [1mCOMMIT[0m
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 367ms (Views: 283.7ms | ActiveRecord: 26.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '826564ce231650edb052b349e6974c99' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 14:51:52')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 21, '2016-08-23 14:51:52')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 21, '2016-08-23 14:51:52')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '826564ce231650edb052b349e6974c99', 'a03fb1fb17f24f5ea845bf6c4450490b', 21, '127.0.0.1', '2016-08-23 14:51:52')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 14:51:52', '2016-08-23 14:51:52')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, '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', '2016-08-23 14:51:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 16
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 67ms (Views: 16.4ms | ActiveRecord: 17.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 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb03d858fd999ef0d921213c363b6e65' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:51:52')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 22, '2016-08-23 14:51:52')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 22, '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 22, '2016-08-23 14:51:52')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fb03d858fd999ef0d921213c363b6e65', 'bc13b80c2923ce2cbe0c8347141587a7', 22, '127.0.0.1', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 14:51:52', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 48ms (Views: 15.6ms | ActiveRecord: 6.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '081c4046a941a5c3d33339ca3afab8ec' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:51:52')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 23, '2016-08-23 14:51:52')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 23, '2016-08-23 14:51:52')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '081c4046a941a5c3d33339ca3afab8ec', '318e542032e1812e600e07efbdb1dfcc', 23, '0.0.0.0', '2016-08-23 14:51:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 23, '2016-08-23 14:51:52', '2016-08-23 14:51:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=23" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"23"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.1ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 26ms (Views: 17.2ms | ActiveRecord: 3.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '33f41675d4b7009b539216be5eb7b24f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:52')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 14:51:52')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '33f41675d4b7009b539216be5eb7b24f', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 14:51:52', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 24, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 19
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (25.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (26.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (26.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (38.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 81ms (Views: 38.2ms | ActiveRecord: 6.7ms)
Started GET "/borrow_direct/BorrowDirect/24?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 19
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
Redirected to http://www.example.com/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=2016-08-23T10%3A51%3A52-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 2.5ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 19[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[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` = 35
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Started GET "/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=2016-08-23T10%3A51%3A52-04%3A00&ctx_id=&ctx_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 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"24", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T10:51:52-04: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.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 32ms (Views: 19.9ms | ActiveRecord: 4.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74385163bc75404cc5b1445fc133c3ef' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:51:52')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2016-08-23 14:51:52')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', '74385163bc75404cc5b1445fc133c3ef', '9902a1d22a141a826ae31b1c83cb928c', 25, '127.0.0.1', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 14:51:52', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 20 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.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', 25, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 14:51:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 20
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 59ms (Views: 15.8ms | ActiveRecord: 6.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c526acd3c1b148e56fe25f8de14b8fd' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:52')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 14:51:52')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8c526acd3c1b148e56fe25f8de14b8fd', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 26, '2016-08-23 14:51:52', '2016-08-23 14:51:52')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 26, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 21
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.1ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 26
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 66ms (Views: 17.7ms | ActiveRecord: 8.3ms)
Started GET "/borrow_direct/BorrowDirect/26?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 21[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=26&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T10%3A51%3A52-04%3A00&ctx_id=&ctx_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 15ms (ActiveRecord: 2.3ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 21
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000415\n' WHERE `service_responses`.`id` = 40[0m
[1m[35m (0.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=26&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T10%3A51%3A52-04%3A00&ctx_id=&ctx_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 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"26", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T10:51:52-04: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.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 26[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 23ms (Views: 15.7ms | ActiveRecord: 2.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d57550ef266553441d81383e3b468bd' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:52')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 14:51:52')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1d57550ef266553441d81383e3b468bd', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 14:51:52')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 27, '2016-08-23 14:51:52', '2016-08-23 14:51:52')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`id` = 22 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:52')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 27, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:52')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 22
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 57ms (Views: 16.0ms | ActiveRecord: 5.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2f55256c81b3f940928f67a37f242e0' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:52')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:51:52')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 14:51:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f2f55256c81b3f940928f67a37f242e0', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 28, '2016-08-23 14:51:52', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 23 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 14:51:52')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 28, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:52')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 23
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.0ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 28
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 70ms (Views: 19.8ms | ActiveRecord: 5.3ms)
Started GET "/borrow_direct/BorrowDirect/28" for 127.0.0.1 at 2016-08-23 10:51:52 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 28, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
Redirected to http://www.example.com/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=2016-08-23T10%3A51%3A52-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 1.7ms)
Started GET "/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=2016-08-23T10%3A51%3A52-04%3A00&ctx_id=&ctx_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 2016-08-23 10:51:52 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"28", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T10:51:52-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mReferent Load (4.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (6.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 28
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 34ms (Views: 16.9ms | ActiveRecord: 7.5ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.0ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (9.4ms)[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 (11.7ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.7ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.1ms)[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 (12.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.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 (11.0ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.7ms)[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 (10.4ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.3ms)[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 (11.7ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (11.6ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (15.8ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (10.8ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.4ms)[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 (10.9ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (14.0ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (10.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 (11.0ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.2ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (10.7ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.4ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.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 2016-08-23 11:48:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb6d28529b4675d9ce7e91019ae7726c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:48:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 15:48:01')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'eb6d28529b4675d9ce7e91019ae7726c', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 15:48:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 15:48:01', '2016-08-23 15:48:01')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:48:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.4s connecting to BorrowDirect server at https://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:48:02' WHERE `dispatched_services`.`id` = 1
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[35mDispatchedService Load (3.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (2.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (5.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (63.9ms)
[1m[36mPermalink Load (0.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (18.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 2998ms (Views: 2407.3ms | ActiveRecord: 26.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 11:48:04 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fbdc719f80c770247e3f30a863d11db3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:48:04')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 15:48:04')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 15:48:04')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 15:48:04')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 15:48:04')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'fbdc719f80c770247e3f30a863d11db3', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 15:48:04')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 15:48:04', '2016-08-23 15:48:04')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.4ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:48:04')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:04' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[36mDispatchedService Load (7.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.0ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (24.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 71ms (Views: 26.6ms | ActiveRecord: 8.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 2016-08-23 11:48:04 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b27accff0449020ea8201242a4f570bf' 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.4ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:48:04')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:48:04')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 15:48:04')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 15:48:04')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 15:48:04')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b27accff0449020ea8201242a4f570bf', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 15:48:04')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 15:48:04', '2016-08-23 15:48:04')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:04' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.6ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 53ms (Views: 17.0ms | ActiveRecord: 7.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2acb6042af80bd8de70ef31c04629eac' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:48:04')[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 15:48:04')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 15:48:04')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 15:48:04')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '2acb6042af80bd8de70ef31c04629eac', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 15:48:04')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 15:48:04', '2016-08-23 15:48:04')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 11:48:04 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.0ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.4ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 30ms (Views: 18.4ms | ActiveRecord: 4.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:48:04 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b33902c261a6293db334485a814702a4' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:04')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:48:04')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 15:48:04')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b33902c261a6293db334485a814702a4', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 15:48:04')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 15:48:04', '2016-08-23 15:48:04')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:48:04')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:48:09')[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:09' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 4754ms (Views: 18.1ms | ActiveRecord: 9.7ms)
Started GET "/borrow_direct/BorrowDirect/5?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 11:48:09 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:48:09' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:48:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T11%3A48%3A09-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 2.4ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:48:10' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5
[1m[36m (0.3ms)[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=2016-08-23T11%3A48%3A09-04%3A00&ctx_id=&ctx_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 2016-08-23 11:48:10 -0400
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"=>"2016-08-23T11:48:09-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.6ms)
[1m[36mPermalink Load (0.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 32ms (Views: 21.7ms | ActiveRecord: 5.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 11:48:11 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '506af66e8898ccd9565d393924886b5c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:48:11')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:48:11')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 15:48:11')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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=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', '506af66e8898ccd9565d393924886b5c', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 15:48:11')[0m
[1m[35m (5.2ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 15:48:11', '2016-08-23 15:48:11')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (0.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 (0.5ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:48:11')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:48:15')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:15' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.1ms)
[1m[35mDispatchedService Load (3.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 4171ms (Views: 20.1ms | ActiveRecord: 17.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:48:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a22231719439cb6dd13615ae36226abd' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:48:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 15:48:15')
[1m[36m (12.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'a22231719439cb6dd13615ae36226abd', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 15:48:15')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 15:48:15', '2016-08-23 15:48:15')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.5ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:48:15')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:48:19')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:19' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.5ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 4481ms (Views: 17.6ms | ActiveRecord: 18.6ms)
Started GET "/borrow_direct/BorrowDirect/7?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 11:48:19 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:48:19' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:48:19')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
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=2016-08-23T11%3A48%3A19-04%3A00&ctx_id=&ctx_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 14ms (ActiveRecord: 2.5ms)
[1m[35mDispatchedService Load (0.5ms)[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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:24' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000416\n' WHERE `service_responses`.`id` = 10[0m
[1m[35m (0.3ms)[0m COMMIT
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=2016-08-23T11%3A48%3A19-04%3A00&ctx_id=&ctx_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 2016-08-23 11:48:24 -0400
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"=>"2016-08-23T11:48:19-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 29ms (Views: 18.5ms | ActiveRecord: 4.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:48:24 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa63db43f7604834708613dd797ad011' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:24')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:48:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 15:48:24')[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fa63db43f7604834708613dd797ad011', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 15:48:24')
[1m[36m (8.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 15:48:24', '2016-08-23 15:48:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:48:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:48:28')[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:28' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (7.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.9ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 4714ms (Views: 21.2ms | ActiveRecord: 21.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:48:28 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b7f26061ca8ceb253f2175c977017e4' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:28')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:48:28')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 15:48:28')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '5b7f26061ca8ceb253f2175c977017e4', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 15:48:28')[0m
[1m[35m (4.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 15:48:28', '2016-08-23 15:48:28')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 15:48:28')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:48:33')
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:33' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 4527ms (Views: 16.2ms | ActiveRecord: 16.2ms)
Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2016-08-23 11:48:33 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[36mRequest Load (2.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:48:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T11%3A48%3A33-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 3.7ms)
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=2016-08-23T11%3A48%3A33-04%3A00&ctx_id=&ctx_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 2016-08-23 11:48:33 -0400
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"=>"2016-08-23T11:48:33-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 25ms (Views: 16.1ms | ActiveRecord: 3.2ms)
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5debfed76b2d873481fe5b7e32eada7a' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 15:48:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 10, '2016-08-23 15:48:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 10, '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.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, 10, '2016-08-23 15:48:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 10, '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 10, '2016-08-23 15:48:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 10, '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 10, '2016-08-23 15:48:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 10, '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 10, '2016-08-23 15:48:33')
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5debfed76b2d873481fe5b7e32eada7a', '06d451b80bf9fe3ce6849a48c98522d7', 10, 'info:sid/google', '0.0.0.0', '2016-08-23 15:48:33')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 15:48:33', '2016-08-23 15:48:33')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 10 LIMIT 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '059005b4cef94690d5bb52d83645eaa6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 15:48:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 11, '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 11, '2016-08-23 15:48:33')
[1m[36mSQL (0.2ms)[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, 11, '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2016-08-23 15:48:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 11, '2016-08-23 15:48:33')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '059005b4cef94690d5bb52d83645eaa6', 'd95884a882a64501650fb8f9deae5104', 11, 'info:sid/google', '0.0.0.0', '2016-08-23 15:48:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 15:48:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 15:48:33', '2016-08-23 15:48:33')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ac50fc792a4f2d8fd88a1eb8144f087' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:48:33')
[1m[36mSQL (0.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, '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 12, '2016-08-23 15:48:33')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8ac50fc792a4f2d8fd88a1eb8144f087', '62590701c6f35b45309577ef8c8c22b4', 12, '0.0.0.0', '2016-08-23 15:48:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (2.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:48:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d3f7a486521fc13a3030937a9bdc1e9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:48:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 15:48:33')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4d3f7a486521fc13a3030937a9bdc1e9', '1f2487b5ab29a0f58587335258d7f8e0', 13, '0.0.0.0', '2016-08-23 15:48:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:48:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 15:48:33', '2016-08-23 15:48:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4f9dacb3b507f2bc05f6bc1f021baf1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:48:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:48:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 14, '2016-08-23 15:48:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b4f9dacb3b507f2bc05f6bc1f021baf1', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 14, '0.0.0.0', '2016-08-23 15:48:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:48:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:48:37')[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 15:48:37', '2016-08-23 15:48:37')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '703c8cb9a0becc7f4ebf5e86186d456c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:37')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:48:37')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 15:48:37')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '703c8cb9a0becc7f4ebf5e86186d456c', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2016-08-23 15:48:37')[0m
[1m[35m (6.7ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 15:48:37')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.5ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 15, '2016-08-23 15:48:38', '2016-08-23 15:48:38')[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 15:48:38' WHERE `dispatched_services`.`id` = 14
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d664ed8184ae9662c20a5bfbe814bc3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:48:38')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:48:38')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2016-08-23 15:48:38')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1d664ed8184ae9662c20a5bfbe814bc3', '9902a1d22a141a826ae31b1c83cb928c', 16, '0.0.0.0', '2016-08-23 15:48:38')
[1m[36m (4.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:48:38')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:48:42')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 15:48:42', '2016-08-23 15:48:42')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7cf1737d77901b04954cc195eb4bedaa' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:42')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:48:42')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 15:48:42')
[1m[36m (11.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7cf1737d77901b04954cc195eb4bedaa', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2016-08-23 15:48:42')[0m
[1m[35m (4.8ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:48:42')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 17, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:48:47')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 15:48:47', '2016-08-23 15:48:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
-----------------------------------------------------------------
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 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd048c55432819bf1d50604cce4bdefd7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:48:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 15:48:47')
[1m[36m (5.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd048c55432819bf1d50604cce4bdefd7', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 15:48:47')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 18
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 18\n', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:48:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T11%3A48%3A47-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b92aa1de7d1471e189174b9b9a295066' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:48:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 15:48:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b92aa1de7d1471e189174b9b9a295066', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 15:48:47')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:48:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 27
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:48:47')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
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=2016-08-23T11%3A48%3A47-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.0ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b8dd4e5826f8c42f95a34a56d56a111f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:48:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 15:48:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b8dd4e5826f8c42f95a34a56d56a111f', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 15:48:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:48:47')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 20, '2016-08-23 15:48:47', '2016-08-23 15:48:47')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.4ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:48:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
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=2016-08-23T11%3A48%3A47-04%3A00&ctx_id=&ctx_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 17ms (ActiveRecord: 2.9ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:48:51' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 30[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df04a622707bc93fddcaf135af35ff3f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:48:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 15:48:51')[0m
[1m[35m (5.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'df04a622707bc93fddcaf135af35ff3f', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 15:48:51')
[1m[36m (5.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:48:51')[0m
[1m[35m (4.3ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2016-08-23 15:48:51', '2016-08-23 15:48:51')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Redirected to http://example.org
Completed 302 Found in 16ms (ActiveRecord: 2.6ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1cc9f66877a86aac2c38c41effb35569' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1cc9f66877a86aac2c38c41effb35569', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0b104f4abe58a41af91ff64d53d8d34' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:48:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e0b104f4abe58a41af91ff64d53d8d34', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 23, '2016-08-23 15:48:51', '2016-08-23 15:48:51')[0m
[1m[35m (6.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 22ms (Views: 0.3ms | ActiveRecord: 8.8ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7d6899274b7204b99d1c182b48c40810' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 15:48:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7d6899274b7204b99d1c182b48c40810', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
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=2016-08-23T11%3A48%3A51-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.0ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53cef8ce94f53606d517f8b2d05b7fab' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:48:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 25, '2016-08-23 15:48:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 25, '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '53cef8ce94f53606d517f8b2d05b7fab', 'e7e9149c1fdfcd3be6736b651a0064bb', 25, '0.0.0.0', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 25, 'test_holding', 'holding', '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (7.0ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 15:48:51', '2016-08-23 15:48:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c9a9ce67a784f2e22fd51309c050ca0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:48:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0c9a9ce67a784f2e22fd51309c050ca0', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'test_holding', 'holding', '2016-08-23 15:48:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 15:48:51', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '504327c351a5a6251975d198cb3fff06' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:48:51')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '504327c351a5a6251975d198cb3fff06', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 15:48:51', '2016-08-23 15:48:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9bbd699be3c3483d495b15c492a5052' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:48:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 15:48:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 15:48:51')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f9bbd699be3c3483d495b15c492a5052', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 15:48:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (28, '--- {}\n', 'test_holding', 'holding', '2016-08-23 15:48:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 15:48:51', '2016-08-23 15:48:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[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.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (22.2ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (8.7ms)[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 (13.1ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.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 (11.4ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.5ms)[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 (10.1ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (10.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 (13.6ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.7ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.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 (12.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.9ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (11.4ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (11.9ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.4ms)[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 (10.9ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.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 (10.4ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.6ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.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 (10.9ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.1ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (8.7ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (10.9ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (10.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.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 2016-08-23 11:49:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a5e90b47f9c9ab2e05d4bbab9bc6faf5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:49:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 15:49:29')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a5e90b47f9c9ab2e05d4bbab9bc6faf5', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 15:49:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 15:49:29', '2016-08-23 15:49:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (0.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 (0.5ms)[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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:49:29')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (59.1ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (12.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (1.0ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 423ms (Views: 281.2ms | ActiveRecord: 14.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 11:49:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e25876f194cea7b60f57dda99365c7f9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:49:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 15:49:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 15:49:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 15:49:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 15:49:29')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e25876f194cea7b60f57dda99365c7f9', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 15:49:29')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 15:49:29', '2016-08-23 15:49:29')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:49:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (1.1ms)
[1m[36m (0.4ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 64ms (Views: 22.3ms | ActiveRecord: 6.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 2016-08-23 11:49:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b4c5acf7495f0fcdebdfd5d9d6a3998' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:49:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:49:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 15:49:29')[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 15:49:29')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 15:49:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '5b4c5acf7495f0fcdebdfd5d9d6a3998', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 15:49:29')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 15:49:29', '2016-08-23 15:49:29')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 60ms (Views: 14.3ms | ActiveRecord: 6.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6df1598cbd411d93a53a7768c9c1a6e3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:49:29')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 15:49:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 15:49:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 15:49:29')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6df1598cbd411d93a53a7768c9c1a6e3', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 15:49:29')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 15:49:29', '2016-08-23 15:49:29')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 11:49:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.9ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m COMMIT
Completed 200 OK in 24ms (Views: 15.0ms | ActiveRecord: 3.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:49:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a2700c873efa902ccb89e36fea7e45b' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:49:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 15:49:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0a2700c873efa902ccb89e36fea7e45b', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 15:49:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 15:49:29', '2016-08-23 15:49:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (0.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 (0.5ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:49:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:49:29')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m [["id", 5]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (28.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 80ms (Views: 30.8ms | ActiveRecord: 6.5ms)
Started GET "/borrow_direct/BorrowDirect/5?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 11:49:29 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.5ms)[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', '2016-08-23 15:49:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T11%3A49%3A29-04%3A00&ctx_id=&ctx_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 14ms (ActiveRecord: 3.1ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5
[1m[36m (0.3ms)[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=2016-08-23T11%3A49%3A29-04%3A00&ctx_id=&ctx_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 2016-08-23 11:49:29 -0400
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"=>"2016-08-23T11:49:29-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.2ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.2ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 35ms (Views: 23.6ms | ActiveRecord: 3.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 11:49:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59cfbaf834517ac5f4e8f4be25752321' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:49:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 15:49:30')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '59cfbaf834517ac5f4e8f4be25752321', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (0.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[35mSQL (0.7ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:49:30')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 15.4ms | ActiveRecord: 6.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:49:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c72fe0c4ec351f2e89e770c97a52103e' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c72fe0c4ec351f2e89e770c97a52103e', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (0.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 (0.5ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:49:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m [["id", 7]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 56ms (Views: 15.3ms | ActiveRecord: 6.0ms)
Started GET "/borrow_direct/BorrowDirect/7?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 11:49:30 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T11%3A49%3A30-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 2.6ms)
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000416\n' WHERE `service_responses`.`id` = 10
[1m[36m (0.3ms)[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=2016-08-23T11%3A49%3A30-04%3A00&ctx_id=&ctx_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 2016-08-23 11:49:30 -0400
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"=>"2016-08-23T11:49:30-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 22ms (Views: 14.3ms | ActiveRecord: 3.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:49:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3222e1f6bd2d7aa2177a349b8b5dd2ae' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3222e1f6bd2d7aa2177a349b8b5dd2ae', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:49:30')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (0.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m [["id", 8]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 58ms (Views: 15.3ms | ActiveRecord: 5.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:49:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '548d58a3f605806d059b78af62bb1906' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 15:49:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '548d58a3f605806d059b78af62bb1906', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 15:49:30', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (3.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (4.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 59ms (Views: 15.6ms | ActiveRecord: 8.8ms)
Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2016-08-23 11:49:30 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:49:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T11%3A49%3A30-04%3A00&ctx_id=&ctx_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 12ms (ActiveRecord: 1.6ms)
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=2016-08-23T11%3A49%3A30-04%3A00&ctx_id=&ctx_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 2016-08-23 11:49:30 -0400
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"=>"2016-08-23T11:49:30-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 26ms (Views: 17.8ms | ActiveRecord: 3.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6016decdeb40c0f0e45510206638479' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 15:49:30')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-23 15:49:30')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e6016decdeb40c0f0e45510206638479', '1f2487b5ab29a0f58587335258d7f8e0', 10, '0.0.0.0', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36m (0.2ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b67679eeac48a44244be44f2508ecfd' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[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, 11, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 11, '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5b67679eeac48a44244be44f2508ecfd', '62590701c6f35b45309577ef8c8c22b4', 11, '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, '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', '2016-08-23 15:49:30')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab8dcf5872786bf24ec13cfd2ad4dc26' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 12, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 12, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 12, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 12, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 12, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 12, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 12, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 12, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 12, '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ab8dcf5872786bf24ec13cfd2ad4dc26', '06d451b80bf9fe3ce6849a48c98522d7', 12, 'info:sid/google', '0.0.0.0', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 12 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb8635fd53f5483b69fbb8a91bdb6601' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 13, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 13, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[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, 13, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 13, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 13, '2016-08-23 15:49:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'cb8635fd53f5483b69fbb8a91bdb6601', 'd95884a882a64501650fb8f9deae5104', 13, 'info:sid/google', '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 15:49:30', '2016-08-23 15:49:30')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbded658a980f9aefcf8212fb4fabfb1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'cbded658a980f9aefcf8212fb4fabfb1', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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_request_prompt.display_text\n:pickup_locations:\n- Main Library\n', 14, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:49:30')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6b5037a19243fcea9dfaae09edcd1b3e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 15, '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6b5037a19243fcea9dfaae09edcd1b3e', '9902a1d22a141a826ae31b1c83cb928c', 15, '0.0.0.0', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:49:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 15:49:30', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fae5fad560016d508fea54b111f2e08d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 16, '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fae5fad560016d508fea54b111f2e08d', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 16, '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:49:30')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6902841b5463cabf53ad0f847b79bcd9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6902841b5463cabf53ad0f847b79bcd9', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 17, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 16[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (3.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2d94ae59d8d7dce744f0227d601f6fa' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b2d94ae59d8d7dce744f0227d601f6fa', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2016-08-23 15:49:30')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT 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', '2016-08-23 15:49:30')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a5f51c071209a57112c88c80a120623e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2016-08-23 15:49:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a5f51c071209a57112c88c80a120623e', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'test_holding', 'holding', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a0c3217b5f441d55aab78d47a545700' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9a0c3217b5f441d55aab78d47a545700', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', 20, 'test_holding', 'holding', '2016-08-23 15:49:30')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f06483530bf564e612bd8e8f0d76b74' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 15:49:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1f06483530bf564e612bd8e8f0d76b74', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (21, '--- {}\n', 'test_holding', 'holding', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 15:49:30', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 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 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74963517c8f2b824e9e515494077f15f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '74963517c8f2b824e9e515494077f15f', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 22
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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: No existing bd_request_prompt response found for request 22\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:49:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T11%3A49%3A30-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89962c7973f06ed97f4b6bdf044174d0' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '89962c7973f06ed97f4b6bdf044174d0', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 34
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 34\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
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=2016-08-23T11%3A49%3A30-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af5952d9e9094e9f93191cad871a49d3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'af5952d9e9094e9f93191cad871a49d3', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 15:49:30', '2016-08-23 15:49:30')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
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=2016-08-23T11%3A49%3A30-04%3A00&ctx_id=&ctx_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"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 16ms (ActiveRecord: 2.1ms)
[1m[35mDispatchedService Load (0.8ms)[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[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[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\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 21
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37[0m
[1m[35m (0.4ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f63b453810cd17bd68d67f9f76792ed4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:49:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 15:49:30')[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f63b453810cd17bd68d67f9f76792ed4', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 15:49:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 15:49:30', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
Redirected to http://example.org
Completed 302 Found in 13ms (ActiveRecord: 2.1ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ef4d2cec48f18535eb3d7eca0951eb86' 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 (0.3ms)[0m [1mSELECT `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[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36m (1.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 22[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:49:30')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 15:49:30')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.5ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 39[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'ef4d2cec48f18535eb3d7eca0951eb86', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31c6f030b52a8c24e7c58b3abd3b3882' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '31c6f030b52a8c24e7c58b3abd3b3882', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 15:49:30')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:49:30')
[1m[36m (0.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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 15:49:30', '2016-08-23 15:49:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.8ms)[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', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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 16ms (Views: 0.2ms | ActiveRecord: 3.0ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0edad934a8fa3836cad2f903802f98df' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:49:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0edad934a8fa3836cad2f903802f98df', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 15:49:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:49:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)
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=2016-08-23T11%3A49%3A30-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (21.7ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (8.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 (9.8ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (8.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 (11.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.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 (10.9ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (8.7ms)[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 (10.6ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.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 (11.3ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.6ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (16.4ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.3ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (45.8ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (11.3ms)[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 (11.5ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.9ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.6ms)[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 (15.5ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.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 (10.4ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (12.4ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (11.8ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (10.1ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.4ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.5ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d2000d8d411597fec060bce29e956d2' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:52')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:50:52')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 15:50:52')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0d2000d8d411597fec060bce29e956d2', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 15:50:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:50:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 15:50:52', '2016-08-23 15:50:52')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 9ms (Views: 4.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cce97b5b31aab0e40c10ef48c0936398' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:52')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 15:50:52')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 15:50:52')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'cce97b5b31aab0e40c10ef48c0936398', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 15:50:52')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 2
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T11%3A50%3A53-04%3A00&ctx_id=&ctx_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 16ms (ActiveRecord: 1.4ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be5dd0a602e946f981ce2cde6240fc31' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'be5dd0a602e946f981ce2cde6240fc31', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:50:53')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 3
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 3\n', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T11%3A50%3A53-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e24d3ca0ee4aabcd8f867bf91baab088' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e24d3ca0ee4aabcd8f867bf91baab088', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 15:50:53')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 15:50:53', '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.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: in_progress\n:error_user_message: \'\'\n', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:53')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://test.host/resolve?umlaut.request_id=4&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T11%3A50%3A53-04%3A00&ctx_id=&ctx_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"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 21ms (ActiveRecord: 3.4ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mDispatchedService Load (0.6ms)[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[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36m (2.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:50:53' WHERE `dispatched_services`.`id` = 2
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 6[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ada95e492f36a641ad8f56cdaafbec3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 15:50:53')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9ada95e492f36a641ad8f56cdaafbec3', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 5, '2016-08-23 15:50:53', '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Redirected to http://example.org
Completed 302 Found in 16ms (ActiveRecord: 4.3ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c18ef259e6696a87351fa34db40f9668' 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 (0.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 (1.8ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:50:53' WHERE `dispatched_services`.`id` = 3[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:50:53')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 15:50:53')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (2.2ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 8[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'c18ef259e6696a87351fa34db40f9668', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de2a9561187ec882630f264c05fe9d0b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'de2a9561187ec882630f264c05fe9d0b', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 15:50:53')[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:50:53')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 7, '2016-08-23 15:50:53', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 12ms (Views: 0.5ms | ActiveRecord: 2.3ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2aac124544ed9437283ac5fde557d9b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f2aac124544ed9437283ac5fde557d9b', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:53')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Redirected to http://test.host/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=2016-08-23T11%3A50%3A53-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:50:53 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ec1b5f827ba604cfbcc4c7461d1ac2df' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:50:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ec1b5f827ba604cfbcc4c7461d1ac2df', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 9, '2016-08-23 15:50:53', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:50:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.3s connecting to BorrowDirect server at https://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:50:53' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[35mDispatchedService Load (3.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (16.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (69.3ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (17.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 669ms (Views: 282.8ms | ActiveRecord: 9.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 11:50:53 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e6f14547b479f072cb295948bf38162' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 10, '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 10, '2016-08-23 15:50:53')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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?genre=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '6e6f14547b479f072cb295948bf38162', 'a03fb1fb17f24f5ea845bf6c4450490b', 10, '127.0.0.1', '2016-08-23 15:50:53')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 15:50:53', '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.4ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22some+book%22', '2016-08-23 15:50:53')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:53' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.2ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 58ms (Views: 18.7ms | ActiveRecord: 6.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 2016-08-23 11:50:53 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae513b52668f6da4f174a7628de4fbea' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 11, '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 11, '2016-08-23 15:50:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ae513b52668f6da4f174a7628de4fbea', 'bc13b80c2923ce2cbe0c8347141587a7', 11, '127.0.0.1', '2016-08-23 15:50:53')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 15:50:53', '2016-08-23 15:50:53')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)
[1m[36mDispatchedService Load (0.2ms)[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 (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:53' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.2ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 47ms (Views: 17.9ms | ActiveRecord: 5.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6ca668fc05ade8af66c4de6ccf174b1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 15:50:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2016-08-23 15:50:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 12, '2016-08-23 15:50:53')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b6ca668fc05ade8af66c4de6ccf174b1', '318e542032e1812e600e07efbdb1dfcc', 12, '0.0.0.0', '2016-08-23 15:50:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 12, '2016-08-23 15:50:54', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=12" for 127.0.0.1 at 2016-08-23 11:50:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"12"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
BorrowDirect: Error placing request: BorrowDirect::Error PUBAZ006: Invalid API key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[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[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.0ms)
[1m[35m (0.9ms)[0m COMMIT
[1m[36mReferent Load (0.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35m (0.4ms)[0m BEGIN
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
[1m[36mSQL (0.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
[1m[35m (1.0ms)[0m COMMIT
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (23.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 47ms (Views: 23.3ms | ActiveRecord: 9.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:50:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5dbda63bede09aef16ce3594d9083a4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:50:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 15:50:54')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b5dbda63bede09aef16ce3594d9083a4', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 15:50:54', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:50:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 13, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:50:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (7.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.1ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (33.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.5ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 116ms (Views: 33.9ms | ActiveRecord: 27.7ms)
Started GET "/borrow_direct/BorrowDirect/13?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 11:50:54 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 9
[1m[36m (8.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:54')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T11%3A50%3A54-04%3A00&ctx_id=&ctx_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: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 32ms (ActiveRecord: 16.4ms)
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18
[1m[36m (0.2ms)[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=2016-08-23T11%3A50%3A54-04%3A00&ctx_id=&ctx_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 2016-08-23 11:50:54 -0400
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"=>"2016-08-23T11:50:54-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.3ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 31ms (Views: 20.7ms | ActiveRecord: 4.3ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 11:50:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aab7ffdc1224d4880f73a20943336658' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2016-08-23 15:50:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'aab7ffdc1224d4880f73a20943336658', '9902a1d22a141a826ae31b1c83cb928c', 14, '127.0.0.1', '2016-08-23 15:50:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 15:50:54', '2016-08-23 15:50:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.4ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)[0m
[1m[35mDispatchedService Load (0.3ms)[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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:50:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 14, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 70ms (Views: 16.5ms | ActiveRecord: 5.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:50:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1999daa4c8e92217bfa52a7e724302a6' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1999daa4c8e92217bfa52a7e724302a6', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 15:50:54', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 15, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 66ms (Views: 21.6ms | ActiveRecord: 5.3ms)
Started GET "/borrow_direct/BorrowDirect/15?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 11:50:54 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T11%3A50%3A54-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 2.3ms)
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000416\n' WHERE `service_responses`.`id` = 23[0m
[1m[35m (0.4ms)[0m COMMIT
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=2016-08-23T11%3A50%3A54-04%3A00&ctx_id=&ctx_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 2016-08-23 11:50:54 -0400
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"=>"2016-08-23T11:50:54-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.1ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.2ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 26ms (Views: 15.7ms | ActiveRecord: 3.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:50:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5ed0570bbb98ab775f42113c3ade442' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c5ed0570bbb98ab775f42113c3ade442', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 15:50:54', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.3ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 16, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 61ms (Views: 16.6ms | ActiveRecord: 5.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:50:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f0bc7bef0dbdd5af62dd1eaa6fde67f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9f0bc7bef0dbdd5af62dd1eaa6fde67f', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 15:50:54')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 15:50:54', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 17, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:50:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 63ms (Views: 17.7ms | ActiveRecord: 5.2ms)
Started GET "/borrow_direct/BorrowDirect/17" for 127.0.0.1 at 2016-08-23 11:50:54 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Redirected to http://www.example.com/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=2016-08-23T11%3A50%3A54-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.6ms)
Started GET "/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=2016-08-23T11%3A50%3A54-04%3A00&ctx_id=&ctx_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 2016-08-23 11:50:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"17", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T11:50:54-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 27ms (Views: 16.9ms | ActiveRecord: 3.7ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7ac2ad2f23512aa7af43742a182f64d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:50:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2016-08-23 15:50:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b7ac2ad2f23512aa7af43742a182f64d', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT 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', '2016-08-23 15:50:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 15:50:54', '2016-08-23 15:50:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a0c8b115ccb6196bb187b7555df4f21' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:50:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9a0c8b115ccb6196bb187b7555df4f21', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'test_holding', 'holding', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 15:50:54', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9782dafbcb213d2e433f34f0d2472cab' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2016-08-23 15:50:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9782dafbcb213d2e433f34f0d2472cab', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'test_holding', 'holding', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 15:50:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 15:50:54', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34aa0f83bfd1fee8c087c13961fd73e4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 21, '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '34aa0f83bfd1fee8c087c13961fd73e4', '9902a1d22a141a826ae31b1c83cb928c', 21, '0.0.0.0', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 21, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:50:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 15:50:54', '2016-08-23 15:50:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2bd847c0def0deca7fd1b5980c35fdad' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 22, '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2bd847c0def0deca7fd1b5980c35fdad', '1f2487b5ab29a0f58587335258d7f8e0', 22, '0.0.0.0', '2016-08-23 15:50:54')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 22, '2016-08-23 15:50:54', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 18
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e612cd55089f0c76b6e2530eb36bebf' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 15:50:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7e612cd55089f0c76b6e2530eb36bebf', '1f2487b5ab29a0f58587335258d7f8e0', 23, '0.0.0.0', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:50:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 23, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 15:50:54', '2016-08-23 15:50:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e0c004c6f752309c299ce6fc7f9d154' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:50:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 24, '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8e0c004c6f752309c299ce6fc7f9d154', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 24, '0.0.0.0', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 15:50:54')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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_not_available.display_text\n', 24, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 15:50:54', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6fcdb1de19f3acbf25744346e410e6f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 25, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 25, '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b6fcdb1de19f3acbf25744346e410e6f', 'e7e9149c1fdfcd3be6736b651a0064bb', 25, '0.0.0.0', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (25, '--- {}\n', 'test_holding', 'holding', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 15:50:54', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'befbb88f29efeabd1ab6a86427ded5eb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:50:54')
[1m[36mSQL (0.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, 26, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2016-08-23 15:50:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'befbb88f29efeabd1ab6a86427ded5eb', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2016-08-23 15:50:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, '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', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0a8d7201b30fa24ca55abe0bc82d37b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 27, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 27, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 27, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[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, 27, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 27, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 27, '2016-08-23 15:50:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a0a8d7201b30fa24ca55abe0bc82d37b', 'd95884a882a64501650fb8f9deae5104', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, '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', '2016-08-23 15:50:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 15:50:54', '2016-08-23 15:50:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1173c80c92010114a1639965543c0e90' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 28, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 28, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 28, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 28, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 28, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 28, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 28, '2016-08-23 15:50:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 28, '2016-08-23 15:50:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 28, '2016-08-23 15:50:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1173c80c92010114a1639965543c0e90', '06d451b80bf9fe3ce6849a48c98522d7', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 15:50:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 15:50:54', '2016-08-23 15:50:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 28 LIMIT 1[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (16.6ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (10.3ms)[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 (11.2ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.1ms)[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 (11.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (8.8ms)[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 (11.3ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (8.7ms)[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 (13.1ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (11.8ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.3ms)[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 (11.9ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.5ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (11.8ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.0ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.3ms)[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 (11.5ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (11.8ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.6ms)[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 (11.4ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.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 (9.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 (9.1ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (10.9ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.3ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.7ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (8.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.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 2016-08-23 11:56:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a7e5aa75b7ed58d3584a0c05d1cbbcb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:56:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 15:56:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8a7e5aa75b7ed58d3584a0c05d1cbbcb', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 15:56:44')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 15:56:44', '2016-08-23 15:56:44')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (0.3ms)[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 (0.5ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:56:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:44' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (0.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (3.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (10.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (63.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (22.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 416ms (Views: 245.7ms | ActiveRecord: 32.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 11:56:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '532b259e522e50102f9a828ea8a3bc53' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:56:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 15:56:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 15:56:44')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '532b259e522e50102f9a828ea8a3bc53', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 15:56:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 15:56:44', '2016-08-23 15:56:44')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:56:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:56:44' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 51ms (Views: 17.8ms | ActiveRecord: 6.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 2016-08-23 11:56:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e970ddd0904dab5cde09489946f0e981' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:56:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 15:56:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 15:56:44')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e970ddd0904dab5cde09489946f0e981', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 15:56:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 15:56:44', '2016-08-23 15:56:44')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:56:44' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (17.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (27.2ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 60ms (Views: 28.2ms | ActiveRecord: 6.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '077d6257140944726d910e8d78036134' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 15:56:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 15:56:44')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '077d6257140944726d910e8d78036134', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 15:56:44')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 15:56:44', '2016-08-23 15:56:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 11:56:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 28ms (Views: 16.3ms | ActiveRecord: 3.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:56:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6f6631bcfbc33465d10afce9b60c5844' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:56:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 15:56:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6f6631bcfbc33465d10afce9b60c5844', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 15:56:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 15:56:44', '2016-08-23 15:56:44')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:56:44')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:44' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 58ms (Views: 18.1ms | ActiveRecord: 7.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 11:56:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e74a3bc2b1ec0aff084bb8dfbdd4b93' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:56:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 15:56:44')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.5ms)[0m BEGIN
[1m[36mSQL (0.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=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', '5e74a3bc2b1ec0aff084bb8dfbdd4b93', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 15:56:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.4ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 15:56:44', '2016-08-23 15:56:44')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:56:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:44' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mReferent Load (2.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.5ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.9ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 23.9ms | ActiveRecord: 9.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:56:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e96360792799ed6b8b18ee9b7bd94c32' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:56:44')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 15:56:44')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e96360792799ed6b8b18ee9b7bd94c32', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 15:56:44')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 15:56:44', '2016-08-23 15:56:44')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (0.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 (0.5ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:56:44')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:44' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 24.3ms | ActiveRecord: 7.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:56:44 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65c52732249087851931182d8e3d23aa' 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.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:44')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:56:44')[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 15:56:44')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '65c52732249087851931182d8e3d23aa', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 15:56:44')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 15:56:44', '2016-08-23 15:56:44')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:56:44')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:44' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.5ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 66ms (Views: 21.5ms | ActiveRecord: 8.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:56:45 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '695633b9abb5236dc9058bd7a6de55e6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 15:56:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '695633b9abb5236dc9058bd7a6de55e6', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 15:56:45', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:56:45')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:45' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.8ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 51ms (Views: 15.2ms | ActiveRecord: 7.1ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d46514eead4706d9c2b94a65787b242' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '8d46514eead4706d9c2b94a65787b242', '1f2487b5ab29a0f58587335258d7f8e0', 10, '0.0.0.0', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 15:56:45', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a2b0b66e39657f743b2e15515204884' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 15:56:45')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5a2b0b66e39657f743b2e15515204884', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (11, '--- {}\n', 'test_holding', 'holding', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 15:56:45')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 15:56:45', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fd9bb02f8dc3ae28019f210ad198fce3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 15:56:45')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fd9bb02f8dc3ae28019f210ad198fce3', '1f2487b5ab29a0f58587335258d7f8e0', 12, '0.0.0.0', '2016-08-23 15:56:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26152e9b822328abe22e43bebe4c22f8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 13, '2016-08-23 15:56:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '26152e9b822328abe22e43bebe4c22f8', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 13, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a27ad312122cedbae875950351f3132' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2016-08-23 15:56:45')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1a27ad312122cedbae875950351f3132', '9902a1d22a141a826ae31b1c83cb928c', 14, '0.0.0.0', '2016-08-23 15:56:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aa0f76dac51e422a68ebfef2bc0e7e60' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'aa0f76dac51e422a68ebfef2bc0e7e60', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:56:45')
[1m[36m (0.4ms)[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`
Rendered text template (0.0ms)
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 (0.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 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6761a79d024d347d155b11b74616c79' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 15:56:45')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd6761a79d024d347d155b11b74616c79', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:56:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T11%3A56%3A45-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.5ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea6ff470e98b9fc668893ca25150fe4a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 15:56:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ea6ff470e98b9fc668893ca25150fe4a', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:56:45')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[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 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 16\n', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T11%3A56%3A45-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a8b3085b0c9e4a9f68bf4899b9ee6c8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3a8b3085b0c9e4a9f68bf4899b9ee6c8', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:56:45')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2016-08-23 15:56:45', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T11%3A56%3A45-04%3A00&ctx_id=&ctx_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: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 303 See Other in 11ms (ActiveRecord: 2.1ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mDispatchedService Load (0.6ms)[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[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:56:45' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e233cf834ca569a2620f2e29554d7090' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e233cf834ca569a2620f2e29554d7090', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 19, '2016-08-23 15:56:45', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.3ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f72e3df56d468ecbe18d21ab5fa7188e' 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 (0.3ms)[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 (1.1ms)[0m [1mBEGIN[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:56:45' WHERE `dispatched_services`.`id` = 13
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:56:45')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 15:56:45')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', 'f72e3df56d468ecbe18d21ab5fa7188e', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b0b4d3799dbc70eddb8c2232046e4779' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 15:56:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b0b4d3799dbc70eddb8c2232046e4779', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 21, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2016-08-23 15:56:45', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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 9ms (Views: 0.3ms | ActiveRecord: 2.4ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mRequest Load (2.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de09194830243f6c5c5c216b7cce0d0e' 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 (0.4ms)[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 (1.2ms)[0m BEGIN
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:56:45' WHERE `dispatched_services`.`id` = 14[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:56:45')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 15:56:45')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 25[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'de09194830243f6c5c5c216b7cce0d0e', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T11%3A56%3A45-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd96658133c9e028c49a9ac69004135aa' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:56:45')
[1m[36mSQL (0.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, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 23, '2016-08-23 15:56:45')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd96658133c9e028c49a9ac69004135aa', '62590701c6f35b45309577ef8c8c22b4', 23, '0.0.0.0', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a43431be81b83bb9fdfd77c51218ca6f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 24, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 24, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 24, '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[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, 24, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 24, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 24, '2016-08-23 15:56:45')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a43431be81b83bb9fdfd77c51218ca6f', 'd95884a882a64501650fb8f9deae5104', 24, 'info:sid/google', '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, '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', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 15:56:45', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '957c7cab60d5ac56ed346d8ce22f02e6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 25, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 25, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 25, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 25, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 25, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 25, '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 25, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 25, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 25, '2016-08-23 15:56:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[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', '957c7cab60d5ac56ed346d8ce22f02e6', '06d451b80bf9fe3ce6849a48c98522d7', 25, 'info:sid/google', '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 15:56:45', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 25 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1762771bc48b4bb7ce6c23b20f56490a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1762771bc48b4bb7ce6c23b20f56490a', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 26, 'test_holding', 'holding', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 15:56:45', '2016-08-23 15:56:45')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '349e216a5c09e7b72961c9344b710af1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '349e216a5c09e7b72961c9344b710af1', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'test_holding', 'holding', '2016-08-23 15:56:45')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 15:56:45', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6d4322a31dd60f03e26e7ef3fa93db8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:56:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 15:56:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c6d4322a31dd60f03e26e7ef3fa93db8', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 15:56:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT 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', '2016-08-23 15:56:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 15:56:45', '2016-08-23 15:56:45')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (14.9ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.6ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (8.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 (11.9ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.5ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (13.3ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (9.7ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (14.1ms)[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 (12.0ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (14.3ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.9ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.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 (11.9ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (14.1ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.2ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.8ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (14.8ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (11.5ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (14.1ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (10.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 (15.0ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.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 (9.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 (10.5ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.4ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.2ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (8.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (15.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.3ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.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 2016-08-23 11:56:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5fd94dc005da7125867f7433618772a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:56:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 15:56:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b5fd94dc005da7125867f7433618772a', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 15:56:57')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 15:56:57', '2016-08-23 15:56:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (0.9ms)[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 (0.5ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:56:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:57' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (4.5ms)
[1m[35mDispatchedService Load (3.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (4.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (65.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (9.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 412ms (Views: 255.0ms | ActiveRecord: 21.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 11:56:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a1973d2ff1aba68ca9846383fd88c05' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '9a1973d2ff1aba68ca9846383fd88c05', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.2ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 51ms (Views: 14.9ms | ActiveRecord: 6.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 2016-08-23 11:56:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e13d43893faca4c35ef89730c30b7f89' 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.3ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e13d43893faca4c35ef89730c30b7f89', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 15:56:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 15:56:58', '2016-08-23 15:56:58')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (0.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (18.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (28.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 61ms (Views: 29.6ms | ActiveRecord: 5.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '93fad7b86042998ea04892e65d6d5374' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 15:56:58')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 15:56:58')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '93fad7b86042998ea04892e65d6d5374', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 11:56:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 25ms (Views: 15.3ms | ActiveRecord: 3.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:56:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab7170c30d4b663c11e0ff874b85dc45' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ab7170c30d4b663c11e0ff874b85dc45', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 15:56:58', '2016-08-23 15:56:58')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (0.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 (0.5ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mReferent Load (2.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (7.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (21.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 60ms (Views: 21.3ms | ActiveRecord: 8.5ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 11:56:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af5253653447ab479b02c1e9e3f017bf' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'af5253653447ab479b02c1e9e3f017bf', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 15:56:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 15:56:58', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mReferent Load (2.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.0ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (2.0ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 20.5ms | ActiveRecord: 12.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:56:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e879933d6fb9dfa250960b1e8de8021' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 15:56:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8e879933d6fb9dfa250960b1e8de8021', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (5.3ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mReferent Load (2.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (0.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.5ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (27.3ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.5ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 27.6ms | ActiveRecord: 9.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:56:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2858b44d6d87415405ebf413d2f42779' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2858b44d6d87415405ebf413d2f42779', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 15:56:58')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 15:56:58', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[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.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 61ms (Views: 16.6ms | ActiveRecord: 8.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:56:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b1c8c88d3f5c7af7eeb4727c75106e61' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b1c8c88d3f5c7af7eeb4727c75106e61', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 56ms (Views: 16.6ms | ActiveRecord: 7.3ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f5db670d392523a388bceb0af7384f1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 10, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 10, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[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, 10, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 10, '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[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', '2f5db670d392523a388bceb0af7384f1', 'd95884a882a64501650fb8f9deae5104', 10, 'info:sid/google', '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, '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', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 15:56:58', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c8df34f75beb0177c7ca7088cdefadd' 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 (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[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, 11, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 11, '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6c8df34f75beb0177c7ca7088cdefadd', '62590701c6f35b45309577ef8c8c22b4', 11, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, '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', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d459cc888c92fbb3d6df057c129ee67' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 12, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 12, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 12, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 12, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 12, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 12, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 12, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 12, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 12, '2016-08-23 15:56:58')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2d459cc888c92fbb3d6df057c129ee67', '06d451b80bf9fe3ce6849a48c98522d7', 12, 'info:sid/google', '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 15:56:58', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 12 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '140471042a58fd1d4d655418dee38664' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '140471042a58fd1d4d655418dee38664', '1f2487b5ab29a0f58587335258d7f8e0', 13, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '140de4eeef7a25a06a261999c3a24cd9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 14, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 14, '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '140de4eeef7a25a06a261999c3a24cd9', 'e7e9149c1fdfcd3be6736b651a0064bb', 14, '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 14, 'test_holding', 'holding', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a69cbaa3502f5419a7f71c50dd9196d9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 15, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 15, '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a69cbaa3502f5419a7f71c50dd9196d9', 'e7e9149c1fdfcd3be6736b651a0064bb', 15, '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'test_holding', 'holding', '2016-08-23 15:56:58')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7a418dc253ec31d139f51ac0f2d2a7eb' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 16, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 16, '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7a418dc253ec31d139f51ac0f2d2a7eb', 'e7e9149c1fdfcd3be6736b651a0064bb', 16, '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 16, 'test_holding', 'holding', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 15:56:58', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f41ee91565e50f6c0aa824dfc6af4529' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:56:58')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 17, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 17, '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f41ee91565e50f6c0aa824dfc6af4529', 'e7e9149c1fdfcd3be6736b651a0064bb', 17, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (17, '--- {}\n', 'test_holding', 'holding', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a3959e127890392bb9e3bc3090cf897' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3a3959e127890392bb9e3bc3090cf897', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42d901778aae0062d67c83723b4dc33a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 19, '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '42d901778aae0062d67c83723b4dc33a', '9902a1d22a141a826ae31b1c83cb928c', 19, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11ef07621542623aa1bc1aee44583236' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 15:56:58')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '11ef07621542623aa1bc1aee44583236', '1f2487b5ab29a0f58587335258d7f8e0', 20, '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d57eb7b939f9f740dde5d278cc2f5b2' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 21, '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0d57eb7b939f9f740dde5d278cc2f5b2', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 21, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
-----------------------------------------------------------------
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 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 (0.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 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9cc56d8c06b55d867641ed4f2a10ec83' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 15:56:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9cc56d8c06b55d867641ed4f2a10ec83', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 22
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 22\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:58')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[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=2016-08-23T11%3A56%3A58-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 1.9ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acba653473b7b56cb81dce7fd58ef2b8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 15:56:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'acba653473b7b56cb81dce7fd58ef2b8', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 23
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 23\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:58')[0m
[1m[35m (5.5ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
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=2016-08-23T11%3A56%3A58-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 6.7ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '677f0e98488349ef9f5e33bfd4ba158a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:56:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 15:56:58')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '677f0e98488349ef9f5e33bfd4ba158a', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
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=2016-08-23T11%3A56%3A58-04%3A00&ctx_id=&ctx_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: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 303 See Other in 12ms (ActiveRecord: 2.4ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mDispatchedService Load (0.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[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26[0m
[1m[35m (0.2ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f87d3e2dbdecdae18ede0e37a1533a7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:56:58')
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5f87d3e2dbdecdae18ede0e37a1533a7', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 15:56:58', '2016-08-23 15:56:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.4ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mRequest Load (2.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '254bd19d5871161b6a1bfdde90d54803' 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 (3.4ms)[0m [1mSELECT `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[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36m (2.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58')
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 18[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:56:58')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 15:56:58')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '254bd19d5871161b6a1bfdde90d54803', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 15:56:58')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9da30f7a093d8e9ee5891cc63a8aa08' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a9da30f7a093d8e9ee5891cc63a8aa08', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:56:58')
[1m[36m (0.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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 15:56:58', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 15:56:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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 9ms (Views: 0.2ms | ActiveRecord: 2.1ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18ef82f585391b8a542da5278ae26848' 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 (0.4ms)[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 (1.2ms)[0m [1mBEGIN[0m
[1m[35m (5.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 19
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:56:58')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 15:56:58')[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mSQL (0.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', '18ef82f585391b8a542da5278ae26848', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 15:56:58')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 28, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T11%3A56%3A58-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (16.4ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (15.3ms)[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 (16.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (14.1ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (11.8ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (11.8ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.7ms)[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 (11.9ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (27.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 (12.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.6ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.9ms)[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 (11.7ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (14.3ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.3ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (11.9ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.0ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (8.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 (10.6ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.7ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.7ms)[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 (12.6ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.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 (9.2ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (11.3ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.7ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (32.0ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (11.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a132c61014e984b40782e442ed2e30c6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 1, '2016-08-23 15:58:45')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a132c61014e984b40782e442ed2e30c6', '9902a1d22a141a826ae31b1c83cb928c', 1, '0.0.0.0', '2016-08-23 15:58:45')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:58:45')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80cf4502e7232c06a67fd81e691d232d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 2, '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '80cf4502e7232c06a67fd81e691d232d', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 2, '0.0.0.0', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b5e8ea7d752262800d2843354fda7cc' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 3, '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5b5e8ea7d752262800d2843354fda7cc', '1f2487b5ab29a0f58587335258d7f8e0', 3, '0.0.0.0', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aba87675c10797829dcb4ccb07d4001f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 15:58:45')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'aba87675c10797829dcb4ccb07d4001f', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ac15c2fe192d819a5cef96640b39743' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 15:58:45')[0m
[1m[35m (12.6ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8ac15c2fe192d819a5cef96640b39743', '1f2487b5ab29a0f58587335258d7f8e0', 5, '0.0.0.0', '2016-08-23 15:58:45')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 15:58:45', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
-----------------------------------------------------------------
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.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29997129be8671d8007ab85520f4b00e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '29997129be8671d8007ab85520f4b00e', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 15:58:45')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 6
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 6\n', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Redirected to http://test.host/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=2016-08-23T11%3A58%3A45-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 1.4ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a5a92615ed3a3681a1405c0b6101e38' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 15:58:45')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1a5a92615ed3a3681a1405c0b6101e38', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:58:45')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 7
[1m[35m (0.1ms)[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 7\n', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Redirected to http://test.host/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=2016-08-23T11%3A58%3A45-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 2.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b9391dd4cbc6d439efa7ad61633b7971' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b9391dd4cbc6d439efa7ad61633b7971', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2016-08-23 15:58:45', '2016-08-23 15:58:45')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Redirected to http://test.host/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=2016-08-23T11%3A58%3A45-04%3A00&ctx_id=&ctx_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: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"NYU","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 18ms (ActiveRecord: 2.5ms)
[1m[35mDispatchedService Load (0.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[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"NYU\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:58:45' WHERE `dispatched_services`.`id` = 2
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10[0m
[1m[35m (0.2ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44026f282cf1e69110cd965910b1a97a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '44026f282cf1e69110cd965910b1a97a', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 9, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 9, '2016-08-23 15:58:45', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Redirected to http://example.org
Completed 302 Found in 12ms (ActiveRecord: 4.4ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"NYU","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '365dde4051259496a130f907a8941785' 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 (0.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[35m (1.9ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"NYU\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:58:45' WHERE `dispatched_services`.`id` = 3[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 15:58:45')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 15:58:45')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12[0m
[1m[35m (1.9ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '365dde4051259496a130f907a8941785', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:58:45')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f38601a90228dfc7e01b2c0c524106d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 15:58:45')
[1m[36m (12.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '4f38601a90228dfc7e01b2c0c524106d', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 15:58:45')[0m
[1m[35m (6.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 11, '2016-08-23 15:58:45', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:58:45')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 13ms (Views: 0.3ms | ActiveRecord: 2.3ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c905a423dc0cb8444d72d140a057435f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c905a423dc0cb8444d72d140a057435f', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T11%3A58%3A45-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b02e8da2b7cb8bd14abf72e9c05e7661' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 13, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 13, '2016-08-23 15:58:45')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b02e8da2b7cb8bd14abf72e9c05e7661', 'e7e9149c1fdfcd3be6736b651a0064bb', 13, '0.0.0.0', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (13, '--- {}\n', 'test_holding', 'holding', '2016-08-23 15:58:45')
[1m[36m (12.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 15:58:45', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '546178043ac8f03ac4466253060b4f0a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:58:45')
[1m[36mSQL (0.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, 14, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 14, '2016-08-23 15:58:45')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '546178043ac8f03ac4466253060b4f0a', '62590701c6f35b45309577ef8c8c22b4', 14, '0.0.0.0', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d607f1dd4358d38bbb765b2a754c650' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 15, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 15, '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 15, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 15, '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 15, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 15, '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 15, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 15, '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 15, '2016-08-23 15:58:45')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5d607f1dd4358d38bbb765b2a754c650', '06d451b80bf9fe3ce6849a48c98522d7', 15, 'info:sid/google', '0.0.0.0', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 15:58:45', '2016-08-23 15:58:45')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 15 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f66c801c0193a3c8469078602f6b420' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:58:45')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 16, '2016-08-23 15:58:45')
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 16, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[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, 16, '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 16, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 16, '2016-08-23 15:58:45')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7f66c801c0193a3c8469078602f6b420', 'd95884a882a64501650fb8f9deae5104', 16, 'info:sid/google', '0.0.0.0', '2016-08-23 15:58:45')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, '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', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 15:58:45', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:58:45 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (4.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2fe9e66d81694c36d164dc367bcaea7a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:45')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:58:45')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 15:58:45')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2fe9e66d81694c36d164dc367bcaea7a', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 17, '2016-08-23 15:58:45', '2016-08-23 15:58:45')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 15:58:45')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 15:58:45' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[36mDispatchedService Load (3.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mReferent Load (2.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (64.8ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN010: Invalid PartnershipId. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.9ms)[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.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN010: Invalid PartnershipId\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 15:58:46' WHERE `dispatched_services`.`id` = 4
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
ServiceResponses skipped for unknown service_ids: BorrowDirect
[1m[35m (0.5ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:58:46')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (11.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 344ms (Views: 277.0ms | ActiveRecord: 17.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 11:58:46 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14abdcd2bd89709b245ef0802a3ddbea' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 18, '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 18, '2016-08-23 15:58:46')
[1m[36m (5.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '14abdcd2bd89709b245ef0802a3ddbea', 'a03fb1fb17f24f5ea845bf6c4450490b', 18, '127.0.0.1', '2016-08-23 15:58:46')[0m
[1m[35m (5.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 15:58:46', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:58:46' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.1ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 65ms (Views: 15.6ms | ActiveRecord: 17.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 2016-08-23 11:58:46 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2574bbf15d582d8f9a8ada4c14699e1' 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.3ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 19, '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 19, '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 19, '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f2574bbf15d582d8f9a8ada4c14699e1', 'bc13b80c2923ce2cbe0c8347141587a7', 19, '127.0.0.1', '2016-08-23 15:58:46')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 15:58:46', '2016-08-23 15:58:46')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:58:46' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.3ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 44ms (Views: 13.4ms | ActiveRecord: 8.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1757218fd1ffbeb1f3b8e369333ff3ab' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 20, '2016-08-23 15:58:46')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1757218fd1ffbeb1f3b8e369333ff3ab', '318e542032e1812e600e07efbdb1dfcc', 20, '0.0.0.0', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 20, '2016-08-23 15:58:46', '2016-08-23 15:58:46')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=20" for 127.0.0.1 at 2016-08-23 11:58:46 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"20"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 22ms (Views: 13.3ms | ActiveRecord: 3.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:58:46 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4cfbebec0299d951e2412a4af4148196' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 15:58:46')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4cfbebec0299d951e2412a4af4148196', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 15:58:46')
[1m[36m (5.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 15:58:46', '2016-08-23 15:58:46')
[1m[36m (4.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:58:46')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"NYU","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 3 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 44ms (ActiveRecord: 18.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 11:58:46 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea6853e8791aa2785b9a6de6ac4df89e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:58:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 22, '2016-08-23 15:58:46')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'ea6853e8791aa2785b9a6de6ac4df89e', '9902a1d22a141a826ae31b1c83cb928c', 22, '127.0.0.1', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 15:58:46', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:58:46')[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"NYU","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 36ms (ActiveRecord: 3.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:58:46 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45ea002495410330bf801df5a5f6d7d8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:58:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '45ea002495410330bf801df5a5f6d7d8', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 15:58:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 15:58:46', '2016-08-23 15:58:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:58:46')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"NYU","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 2.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:58:46 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37d5d803d9aac920f44e6872cc5edf95' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 15:58:46')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '37d5d803d9aac920f44e6872cc5edf95', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 15:58:46')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (2.4ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 15:58:46', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:58:46')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"NYU","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 31ms (ActiveRecord: 5.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 11:58:46 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '060ae5375d78cd676c4ac1e8161e5177' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:58:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 15:58:46')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '060ae5375d78cd676c4ac1e8161e5177', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 15:58:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 15:58:46', '2016-08-23 15:58:46')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 15:58:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"NYU","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 31ms (ActiveRecord: 3.5ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae585384b7de970c7c4b0b71bfa5cc1e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ae585384b7de970c7c4b0b71bfa5cc1e', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 15:58:46')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'test_holding', 'holding', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 15:58:46')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 15:58:46', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '70fa6bb7c4389b441b741f9de5edeea1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 15:58:46')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '70fa6bb7c4389b441b741f9de5edeea1', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 15:58:46')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'test_holding', 'holding', '2016-08-23 15:58:46')[0m
[1m[35m (7.1ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 15:58:46', '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b23c8736fe59669ada947230e50c7395' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:58:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:58:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 15:58:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 15:58:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b23c8736fe59669ada947230e50c7395', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 15:58:46')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT 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', '2016-08-23 15:58:46')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 15:58:46', '2016-08-23 15:58:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.7ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (9.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 (13.8ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.1ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (11.4ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (8.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 (11.1ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.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 (11.3ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.5ms)[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 (10.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.7ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.4ms)[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 (30.4ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.5ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.2ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.2ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (10.9ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.2ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.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 (11.3ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.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 (10.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (34.6ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.5ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.8ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.6ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.3ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (1.1ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b54312ca58a71fc68624ef5854693fe4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:00:21')
[1m[36mSQL (0.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, 1, '2016-08-23 16:00:21')[0m
[1m[35mSQL (5.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 1, '2016-08-23 16:00:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b54312ca58a71fc68624ef5854693fe4', '62590701c6f35b45309577ef8c8c22b4', 1, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 16:00:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c467a38156a142eb8eb72d4d1bc720f6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 2, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 2, '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 2, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 2, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 2, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 2, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 2, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 2, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 2, '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[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', 'c467a38156a142eb8eb72d4d1bc720f6', '06d451b80bf9fe3ce6849a48c98522d7', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:00:21')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:00:21', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 2 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '180195decb98286b1df95cbf47db9e6a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 3, '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 3, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[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, 3, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 3, '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '180195decb98286b1df95cbf47db9e6a', 'd95884a882a64501650fb8f9deae5104', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:00:21')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:00:21', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f3dfa3db53cf9dca68bcfa1867adf40' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1f3dfa3db53cf9dca68bcfa1867adf40', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:00:21', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[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 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ff6a08a21eaaae703328ff5b8c4d22e5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:00:21')[0m
[1m[35m (5.0ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ff6a08a21eaaae703328ff5b8c4d22e5', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 5
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 5\n', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Redirected to http://test.host/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=2016-08-23T12%3A00%3A21-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 1.4ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd18e4a1179a8f47fbbbbe50f76b049d1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:00:21')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd18e4a1179a8f47fbbbbe50f76b049d1', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:00:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:21')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 5
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 5\n', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Redirected to http://test.host/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=2016-08-23T12%3A00%3A21-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1055814c25b203c9c9763e4839955a7a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:00:21')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1055814c25b203c9c9763e4839955a7a', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 7, '2016-08-23 16:00:21', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Redirected to http://test.host/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=2016-08-23T12%3A00%3A21-04%3A00&ctx_id=&ctx_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 14ms (ActiveRecord: 2.2ms)
[1m[36mDispatchedService Load (5.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:00:21' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 8
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'debc0720d2c29d262becdb1f4b7e072d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'debc0720d2c29d262becdb1f4b7e072d', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 8, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2016-08-23 16:00:21', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Redirected to http://example.org
Completed 302 Found in 13ms (ActiveRecord: 4.6ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (0.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '466634200ff537f7b6051f8f43fffaa5' 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 (0.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 (6.0ms)[0m [1mBEGIN[0m
[1m[35m (2.3ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:00:21' WHERE `dispatched_services`.`id` = 5
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:00:21')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 16:00:21')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', '466634200ff537f7b6051f8f43fffaa5', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '12595b8703fd0aa28df1f0913d82380c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '12595b8703fd0aa28df1f0913d82380c', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:00:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 10, '2016-08-23 16:00:21', '2016-08-23 16:00:21')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 11ms (Views: 0.4ms | ActiveRecord: 2.3ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd89f6ee59bb4407a979f792ce94464c9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:00:21')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd89f6ee59bb4407a979f792ce94464c9', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:21')
[1m[36m (5.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T12%3A00%3A21-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 6.9ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '085d4a2e11a42cfca78e1c9eecf49f7b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:00:21')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '085d4a2e11a42cfca78e1c9eecf49f7b', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (12, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:00:21', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b13902820d29518fd4bfad253227a4ed' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 13, '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 13, '2016-08-23 16:00:21')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b13902820d29518fd4bfad253227a4ed', 'e7e9149c1fdfcd3be6736b651a0064bb', 13, '0.0.0.0', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 13, 'test_holding', 'holding', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 16:00:21', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b1b7f8899a6cc0cb5a59a764922ca24' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 14, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 14, '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4b1b7f8899a6cc0cb5a59a764922ca24', 'e7e9149c1fdfcd3be6736b651a0064bb', 14, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', 14, 'test_holding', 'holding', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:00:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.8ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 16:00:21', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f25e94ee5e5cf09fca255065ded4dba9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 15, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 15, '2016-08-23 16:00:21')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f25e94ee5e5cf09fca255065ded4dba9', 'e7e9149c1fdfcd3be6736b651a0064bb', 15, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'test_holding', 'holding', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:00:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 16:00:21', '2016-08-23 16:00:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69a84a5e6e3cf991de84c33e3d61446a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '69a84a5e6e3cf991de84c33e3d61446a', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:00:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 16, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:21')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 16:00:21', '2016-08-23 16:00:21')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99e9acbc09ac16188650ddda57062786' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 17, '2016-08-23 16:00:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '99e9acbc09ac16188650ddda57062786', '9902a1d22a141a826ae31b1c83cb928c', 17, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:21')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 16:00:21', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed3c9d51f16972fb19c2c301b3b29096' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 18, '2016-08-23 16:00:21')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ed3c9d51f16972fb19c2c301b3b29096', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 18, '0.0.0.0', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 18, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:00:21', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a72af2012aa215480eea6b21452231d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:00:21')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5a72af2012aa215480eea6b21452231d', '1f2487b5ab29a0f58587335258d7f8e0', 19, '0.0.0.0', '2016-08-23 16:00:21')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:21')[0m
[1m[35m (0.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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.3ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 19, '2016-08-23 16:00:21', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 16:00:21' WHERE `dispatched_services`.`id` = 14
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:21 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '050854cc4b841bd30219b7b26c5efe9d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:00:21')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '050854cc4b841bd30219b7b26c5efe9d', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 20, '2016-08-23 16:00:21', '2016-08-23 16:00:21')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:21')
[1m[36m (0.6ms)[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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 52ms (ActiveRecord: 9.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:00:21 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '78a7fdba2ff5003c1937e42c3f10ae1a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:00:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 16:00:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 21, '2016-08-23 16:00:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 21, '2016-08-23 16:00:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '78a7fdba2ff5003c1937e42c3f10ae1a', 'a03fb1fb17f24f5ea845bf6c4450490b', 21, '127.0.0.1', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:00:21', '2016-08-23 16:00:21')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:00:21')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:21' WHERE `dispatched_services`.`id` = 16[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (3.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.6ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (63.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (7.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 298ms (Views: 262.4ms | ActiveRecord: 7.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 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f76c33fa2dfb21483865ecdb2b22de2' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:00:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 22, '2016-08-23 16:00:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 22, '2016-08-23 16:00:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 22, '2016-08-23 16:00:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7f76c33fa2dfb21483865ecdb2b22de2', 'bc13b80c2923ce2cbe0c8347141587a7', 22, '127.0.0.1', '2016-08-23 16:00:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 16:00:22', '2016-08-23 16:00:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 45ms (Views: 13.0ms | ActiveRecord: 6.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2111bc9814c2add169ef7c4974743fa4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 16:00:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 23, '2016-08-23 16:00:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 23, '2016-08-23 16:00:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2111bc9814c2add169ef7c4974743fa4', '318e542032e1812e600e07efbdb1dfcc', 23, '0.0.0.0', '2016-08-23 16:00:22')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 23, '2016-08-23 16:00:22', '2016-08-23 16:00:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=23" for 127.0.0.1 at 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.8ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 21ms (Views: 13.7ms | ActiveRecord: 2.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ec758742fcd513c19a64cd1e22336489' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:00:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:00:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'ec758742fcd513c19a64cd1e22336489', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:00:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:00:22', '2016-08-23 16:00:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC
[1m[36mDispatchedService Load (0.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:22')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 24, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 19
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (7.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (10.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (24.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 84ms (Views: 23.8ms | ActiveRecord: 7.2ms)
Started GET "/borrow_direct/BorrowDirect/24?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:00:22 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 19[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:00:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
Redirected to http://www.example.com/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=2016-08-23T12%3A00%3A22-04%3A00&ctx_id=&ctx_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: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 13ms (ActiveRecord: 2.5ms)
[1m[35mDispatchedService Load (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 19
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 34[0m
[1m[35m (0.2ms)[0m COMMIT
Started GET "/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=2016-08-23T12%3A00%3A22-04%3A00&ctx_id=&ctx_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 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"24", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:00:22-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.7ms)
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 28ms (Views: 19.1ms | ActiveRecord: 3.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '373f25b6c3d0f5a253973febcf2a7446' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:00:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2016-08-23 16:00:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '373f25b6c3d0f5a253973febcf2a7446', '9902a1d22a141a826ae31b1c83cb928c', 25, '127.0.0.1', '2016-08-23 16:00:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:00:22', '2016-08-23 16:00:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 20 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:22')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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_not_available.display_text\n', 25, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:00:22')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 20
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.2ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 96ms (Views: 20.3ms | ActiveRecord: 6.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e45483e42165bb64c9d0eeed6c7c2523' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:00:22')[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:00:22')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e45483e42165bb64c9d0eeed6c7c2523', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 16:00:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 26, '2016-08-23 16:00:22', '2016-08-23 16:00:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 26, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 21
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.9ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (26.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 26
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 85ms (Views: 28.1ms | ActiveRecord: 7.7ms)
Started GET "/borrow_direct/BorrowDirect/26?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:00:22 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 21[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=26&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A00%3A22-04%3A00&ctx_id=&ctx_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 16ms (ActiveRecord: 2.6ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 21
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000416\n' WHERE `service_responses`.`id` = 39[0m
[1m[35m (0.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=26&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A00%3A22-04%3A00&ctx_id=&ctx_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 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"26", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:00:22-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 26
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 23ms (Views: 13.9ms | ActiveRecord: 3.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34be94b7da560158d908cf4be9366aab' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:00:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 16:00:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '34be94b7da560158d908cf4be9366aab', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 16:00:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 27, '2016-08-23 16:00:22', '2016-08-23 16:00:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`id` = 22 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 27, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 22[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.0ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (2.3ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 61ms (Views: 15.9ms | ActiveRecord: 8.5ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5ec79bd3ac5893b124f8429477e042b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:00:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:00:22')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'b5ec79bd3ac5893b124f8429477e042b', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 16:00:22')[0m
[1m[35m (11.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 28, '2016-08-23 16:00:22', '2016-08-23 16:00:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 23 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 28, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 23
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.4ms)
[1m[36mPermalink Load (0.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 28[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 84ms (Views: 19.5ms | ActiveRecord: 23.2ms)
Started GET "/borrow_direct/BorrowDirect/28" for 127.0.0.1 at 2016-08-23 12:00:22 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)
Redirected to http://www.example.com/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=2016-08-23T12%3A00%3A22-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 1.7ms)
Started GET "/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=2016-08-23T12%3A00%3A22-04%3A00&ctx_id=&ctx_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 2016-08-23 12:00:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"28", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:00:22-04: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.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 28[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 22ms (Views: 14.2ms | ActiveRecord: 3.4ms)
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.1ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (12.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 (13.3ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.6ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (30.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 (12.1ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (7.8ms)[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 (9.3ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (10.1ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.5ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.3ms)[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 (11.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.9ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.5ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.0ms)[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 (18.9ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (28.5ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (36.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 (17.8ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (17.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 (13.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 (15.9ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (16.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (20.7ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (14.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (12.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (44.0ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.3ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ff6638042b94bc7857401c1304386d43' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:00:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:00:46')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ff6638042b94bc7857401c1304386d43', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 16:00:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:00:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 1, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:47')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:00:47', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d49434f1cca59844e297a8867a5a0e1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 2, '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4d49434f1cca59844e297a8867a5a0e1', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 2, '0.0.0.0', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:00:47')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:00:47', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9482a419fb7997bdfa16f16c0f0dc0a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 3, '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a9482a419fb7997bdfa16f16c0f0dc0a', '1f2487b5ab29a0f58587335258d7f8e0', 3, '0.0.0.0', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 3, '2016-08-23 16:00:47', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 16:00:47' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fd3af115a4d04cdf2d86b4c08df1ce2d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 4, '2016-08-23 16:00:47')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fd3af115a4d04cdf2d86b4c08df1ce2d', '9902a1d22a141a826ae31b1c83cb928c', 4, '0.0.0.0', '2016-08-23 16:00:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:00:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:00:47', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bcbde18535387bb1bd529939eac390a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[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, 5, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 5, '2016-08-23 16:00:47')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '6bcbde18535387bb1bd529939eac390a', '62590701c6f35b45309577ef8c8c22b4', 5, '0.0.0.0', '2016-08-23 16:00:47')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 16:00:47')
[1m[36m (5.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a67fcc4680cd004cd1a1d4ae9649d1f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 6, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 6, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[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, 6, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 6, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 6, '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2a67fcc4680cd004cd1a1d4ae9649d1f', 'd95884a882a64501650fb8f9deae5104', 6, 'info:sid/google', '0.0.0.0', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, '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', '2016-08-23 16:00:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 16:00:47', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '58cab5df02a2c08d6d3cf2652c4a4d32' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 7, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 7, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 7, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 7, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 7, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 7, '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 7, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 7, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 7, '2016-08-23 16:00:47')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '58cab5df02a2c08d6d3cf2652c4a4d32', '06d451b80bf9fe3ce6849a48c98522d7', 7, 'info:sid/google', '0.0.0.0', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2016-08-23 16:00:47', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 7 LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '40fc020f8cd4e91a335524fedef7df4a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 8, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 8, '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '40fc020f8cd4e91a335524fedef7df4a', 'e7e9149c1fdfcd3be6736b651a0064bb', 8, '0.0.0.0', '2016-08-23 16:00:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (8, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:00:47')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:00:47', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 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 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e60ea0345e8f1e99ff6398b5d59a1295' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 16:00:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e60ea0345e8f1e99ff6398b5d59a1295', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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 9\n', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[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=2016-08-23T12%3A00%3A47-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 1.5ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88f5ae53f97414b2f5c92c016862cf7d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:00:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '88f5ae53f97414b2f5c92c016862cf7d', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.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 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 13\n', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A00%3A47-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '973f33ba75dc7cd4c7c630d16f1db7f7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:00:47')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '973f33ba75dc7cd4c7c630d16f1db7f7', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 11, '2016-08-23 16:00:47', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A00%3A47-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 2.2ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36mDispatchedService Load (1.7ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:00:47' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 16
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'caf292892bc08089dfee4dbd2802c64b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'caf292892bc08089dfee4dbd2802c64b', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:00:47')
[1m[36m (0.6ms)[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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 12, '2016-08-23 16:00:47', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Redirected to http://example.org
Completed 302 Found in 12ms (ActiveRecord: 4.5ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '01ccae6071b5332e7938448f99783a78' 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 (0.4ms)[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.9ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:00:47' WHERE `dispatched_services`.`id` = 9
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:00:47')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:00:47')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', '01ccae6071b5332e7938448f99783a78', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:00:47')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3425a8f0ef47aabda44b6e77263f0c48' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:00:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3425a8f0ef47aabda44b6e77263f0c48', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 14, '2016-08-23 16:00:47', '2016-08-23 16:00:47')[0m
[1m[35m (6.2ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:00:47')
[1m[36m (6.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 29ms (Views: 0.4ms | ActiveRecord: 14.9ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c74ad38e8828ebab3d38b3d5259bf88a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:00:47')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c74ad38e8828ebab3d38b3d5259bf88a', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:00:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A00%3A47-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2cc98f0d3cda47d11e07666933c645f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:00:47')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b2cc98f0d3cda47d11e07666933c645f', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 16:00:47', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (9.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a3da20c00fc0ee6bd4adc4a9b39ff81' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:00:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6a3da20c00fc0ee6bd4adc4a9b39ff81', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 17, '2016-08-23 16:00:47', '2016-08-23 16:00:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:00:47' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mDispatchedService Load (3.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mReferent Load (2.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.7ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (10.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (5.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (64.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (7.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 341ms (Views: 274.6ms | ActiveRecord: 19.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:00:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '91462bd354ab807d959dce85698e4475' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 18, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 18, '2016-08-23 16:00:47')[0m
[1m[35m (5.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '91462bd354ab807d959dce85698e4475', 'a03fb1fb17f24f5ea845bf6c4450490b', 18, '127.0.0.1', '2016-08-23 16:00:47')
[1m[36m (4.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:00:47', '2016-08-23 16:00:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, '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', '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:47' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 58ms (Views: 14.8ms | ActiveRecord: 16.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 2016-08-23 12:00:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8036b7fbdeaabdc2d8a136c0b20ec2f1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 19, '2016-08-23 16:00:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 19, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 19, '2016-08-23 16:00:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8036b7fbdeaabdc2d8a136c0b20ec2f1', 'bc13b80c2923ce2cbe0c8347141587a7', 19, '127.0.0.1', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:00:47', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:47' WHERE `dispatched_services`.`id` = 14
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 42ms (Views: 13.4ms | ActiveRecord: 5.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7f2d86b992a74e8d600f4a5ea5be2ba' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:00:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 16:00:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 20, '2016-08-23 16:00:47')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e7f2d86b992a74e8d600f4a5ea5be2ba', '318e542032e1812e600e07efbdb1dfcc', 20, '0.0.0.0', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 20, '2016-08-23 16:00:47', '2016-08-23 16:00:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=20" for 127.0.0.1 at 2016-08-23 12:00:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"20"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 23ms (Views: 14.9ms | ActiveRecord: 2.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:48 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4602a8aaaf162a3c23d1f8767f8e9614' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:48')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 16:00:48')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4602a8aaaf162a3c23d1f8767f8e9614', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:00:48')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:00:48', '2016-08-23 16:00:48')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:48')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 21, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:48')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 16
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mDispatchedService Load (0.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 [["id", 21]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 98ms (Views: 21.6ms | ActiveRecord: 6.9ms)
Started GET "/borrow_direct/BorrowDirect/21?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:00:48 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 16[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:00:48')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Redirected to http://www.example.com/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=2016-08-23T12%3A00%3A48-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 2.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 16
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 29[0m
[1m[35m (0.3ms)[0m COMMIT
Started GET "/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=2016-08-23T12%3A00%3A48-04%3A00&ctx_id=&ctx_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 2016-08-23 12:00:48 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"21", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:00:48-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (3.6ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 34ms (Views: 18.8ms | ActiveRecord: 8.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:00:48 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0e8e1841bb24ef8d05456580d97c0cdf' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:00:48')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 22, '2016-08-23 16:00:48')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0e8e1841bb24ef8d05456580d97c0cdf', '9902a1d22a141a826ae31b1c83cb928c', 22, '127.0.0.1', '2016-08-23 16:00:48')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 16:00:48', '2016-08-23 16:00:48')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:48')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:00:48')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (21.5ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 100ms (Views: 26.9ms | ActiveRecord: 6.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:48 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '097c73215caf0080fd3171f220873187' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:00:48')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:00:48')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '097c73215caf0080fd3171f220873187', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:00:48')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 16:00:48', '2016-08-23 16:00:48')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 18 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:48')
[1m[36m (2.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 23, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:48')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 18[0m
[1m[35m (5.6ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.0ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m [["id", 23]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (23.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (5.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 103ms (Views: 29.3ms | ActiveRecord: 5.7ms)
Started GET "/borrow_direct/BorrowDirect/23?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:00:48 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 18
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:48')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Redirected to http://www.example.com/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=2016-08-23T12%3A00%3A48-04%3A00&ctx_id=&ctx_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 19ms (ActiveRecord: 2.3ms)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 18[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000416\n' WHERE `service_responses`.`id` = 34
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Started GET "/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=2016-08-23T12%3A00%3A48-04%3A00&ctx_id=&ctx_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 2016-08-23 12:00:48 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"23", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:00:48-04: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.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms)
[1m[36mPermalink Load (0.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 29ms (Views: 17.5ms | ActiveRecord: 3.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:48 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '583894ed85235d3035edbe2f2a0291c1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:48')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:00:48')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '583894ed85235d3035edbe2f2a0291c1', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:00:48')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:00:48', '2016-08-23 16:00:48')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:48')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 24, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:48')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 19
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m [["id", 24]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.0ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 71ms (Views: 18.8ms | ActiveRecord: 8.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:48 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b88497a2c06f7ae26b8c975aff31f0c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:48')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:00:48')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '1b88497a2c06f7ae26b8c975aff31f0c', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 16:00:48')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:00:48', '2016-08-23 16:00:48')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 20 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:48')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 25, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:48')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 20
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 [["id", 25]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 16.5ms | ActiveRecord: 18.2ms)
Started GET "/borrow_direct/BorrowDirect/25" for 127.0.0.1 at 2016-08-23 12:00:48 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:48')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
Redirected to http://www.example.com/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=2016-08-23T12%3A00%3A48-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
Started GET "/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=2016-08-23T12%3A00%3A48-04%3A00&ctx_id=&ctx_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 2016-08-23 12:00:48 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"25", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:00:48-04: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.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mReferent Load (0.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (6.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 [["id", 25]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.8ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 29ms (Views: 19.2ms | ActiveRecord: 4.5ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '014f2e19d170d211107dc98077ae241d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:00:48')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 16:00:48')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.4ms)[0m BEGIN
[1m[36mSQL (0.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', '014f2e19d170d211107dc98077ae241d', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 16:00:48')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', '2016-08-23 16:00:48')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:00:48')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:00:48', '2016-08-23 16:00:48')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df3f1ee74b713345e18257f9d3b95f73' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:00:48')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 16:00:48')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'df3f1ee74b713345e18257f9d3b95f73', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 16:00:48')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 27, 'test_holding', 'holding', '2016-08-23 16:00:48')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:00:48', '2016-08-23 16:00:48')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb567dc49e40949d1d6ff01d904fa5ba' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:48')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:00:48')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:00:48')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:00:48')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'cb567dc49e40949d1d6ff01d904fa5ba', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:00:48')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 28, 'test_holding', 'holding', '2016-08-23 16:00:48')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mServiceResponse Load (0.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:00:48')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:00:48', '2016-08-23 16:00:48')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (16.4ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (13.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 (30.1ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.5ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (10.9ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.1ms)[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 (15.2ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (8.5ms)[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 (11.1ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (11.6ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (10.0ms)[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 (11.3ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.2ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.5ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.9ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (30.1ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (12.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 (11.3ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (8.0ms)[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 (13.0ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (10.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 (11.3ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (14.3ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.5ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.8ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (14.4ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
-----------------------------------------------------------------
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 21ms (Views: 7.0ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 22ms (Views: 0.2ms | ActiveRecord: 1.9ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f37692b94576c729695166b2b82ea7ec' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:00:56')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 16:00:56')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f37692b94576c729695166b2b82ea7ec', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 16:00:56')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 1\n', 1, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:56')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Redirected to http://test.host/resolve?umlaut.request_id=1&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A00%3A56-04%3A00&ctx_id=&ctx_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 20ms (ActiveRecord: 3.1ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16df2445aa4504516bf4b596d860baa7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:00:56')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 16:00:56')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '16df2445aa4504516bf4b596d860baa7', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 16:00:56')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:56')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:56')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A00%3A56-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b16125d97abcd855db8fca4100911d29' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:00:56')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:00:56')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b16125d97abcd855db8fca4100911d29', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:00:56')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:56')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 16:00:56', '2016-08-23 16:00:56')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:56')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A00%3A56-04%3A00&ctx_id=&ctx_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: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 303 See Other in 25ms (ActiveRecord: 3.8ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mDispatchedService Load (0.7ms)[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[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:00:56' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ed3c76ceb25d6ca6938e05e05977ef2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:00:56')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:00:56')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9ed3c76ceb25d6ca6938e05e05977ef2', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:00:56')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:56')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 16:00:56', '2016-08-23 16:00:56')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:56')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://example.org
Completed 302 Found in 19ms (ActiveRecord: 5.9ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3699c573c51c08b82408a1b19cd76423' 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 (0.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 (1.0ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.8ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56')
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:00:56' WHERE `dispatched_services`.`id` = 2[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:00:56')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:00:56')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '3699c573c51c08b82408a1b19cd76423', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:00:56')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:56')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:56')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b9780dbdd9ddf4611cfc0c79c93f6bf' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:00:56')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:00:56')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '1b9780dbdd9ddf4611cfc0c79c93f6bf', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:00:56')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:56')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:00:56', '2016-08-23 16:00:56')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:57')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Rendered text template (0.0ms)
Completed 403 Forbidden in 13ms (Views: 1.0ms | ActiveRecord: 2.3ms)
----------------------------------------------------------------------------
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` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '138caaa118cb822cf4bc0ec2f3a88120' 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.3ms)[0m [1mBEGIN[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 3[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:57')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:00:57')
[1m[36m (0.6ms)[0m [1mBEGIN[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, 7, '2016-08-23 16:00:57')
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36mSQL (0.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', '138caaa118cb822cf4bc0ec2f3a88120', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Redirected to http://test.host/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=2016-08-23T12%3A00%3A57-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7de5d51ff798f28f8e617d7ce626bf53' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[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, 8, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 8, '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7de5d51ff798f28f8e617d7ce626bf53', '62590701c6f35b45309577ef8c8c22b4', 8, '0.0.0.0', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, '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', '2016-08-23 16:00:57')[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d68c0cd46391aa7099fe42ea8850b24' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 9, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 9, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 9, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 9, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 9, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 9, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 9, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 9, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 9, '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0d68c0cd46391aa7099fe42ea8850b24', '06d451b80bf9fe3ce6849a48c98522d7', 9, 'info:sid/google', '0.0.0.0', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 16:00:57', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 9 LIMIT 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9dea0adde6c572b66acd2045b460a828' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 10, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 10, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[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, 10, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 10, '2016-08-23 16:00:57')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9dea0adde6c572b66acd2045b460a828', 'd95884a882a64501650fb8f9deae5104', 10, 'info:sid/google', '0.0.0.0', '2016-08-23 16:00:57')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, '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', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:00:57', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36m (0.2ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0355e4e962fe275f6cc243160aa74d5d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:00:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0355e4e962fe275f6cc243160aa74d5d', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 11, '2016-08-23 16:00:57', '2016-08-23 16:00:57')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:57')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.3ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (12.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (59.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (22.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 307ms (Views: 239.2ms | ActiveRecord: 24.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:00:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '78f928828d0edd1bf3d71dc5dadb7cd2' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 12, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 12, '2016-08-23 16:00:57')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.6ms)[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', '78f928828d0edd1bf3d71dc5dadb7cd2', 'a03fb1fb17f24f5ea845bf6c4450490b', 12, '127.0.0.1', '2016-08-23 16:00:57')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:00:57', '2016-08-23 16:00:57')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, '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', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.2ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 67ms (Views: 18.3ms | ActiveRecord: 8.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 2016-08-23 12:00:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be564ea97edbdaeb961293803465a7a4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 13, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 13, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 13, '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'be564ea97edbdaeb961293803465a7a4', 'bc13b80c2923ce2cbe0c8347141587a7', 13, '127.0.0.1', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:00:57', '2016-08-23 16:00:57')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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 (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.2ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 46ms (Views: 14.3ms | ActiveRecord: 5.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e647dfb626f66a2f17049eb94c29519b' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:00:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 14, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 14, '2016-08-23 16:00:57')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e647dfb626f66a2f17049eb94c29519b', '318e542032e1812e600e07efbdb1dfcc', 14, '0.0.0.0', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 14, '2016-08-23 16:00:57', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=14" for 127.0.0.1 at 2016-08-23 12:00:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"14"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 29ms (Views: 18.8ms | ActiveRecord: 4.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '796e6f750425268b1c6f1c6e67c4051a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '796e6f750425268b1c6f1c6e67c4051a', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:00:57')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:00:57', '2016-08-23 16:00:57')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:57')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mReferent Load (1.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (5.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (25.1ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 79ms (Views: 26.9ms | ActiveRecord: 8.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:00:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbc7258ef77b5dd1df3232c05d1fdc86' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2016-08-23 16:00:57')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'bbc7258ef77b5dd1df3232c05d1fdc86', '9902a1d22a141a826ae31b1c83cb928c', 16, '127.0.0.1', '2016-08-23 16:00:57')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:00:57', '2016-08-23 16:00:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 67ms (Views: 20.1ms | ActiveRecord: 6.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a58166ab78747292187e7992f62a3e29' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:00:57')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.5ms)[0m BEGIN
[1m[36mSQL (0.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', 'a58166ab78747292187e7992f62a3e29', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:00:57', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m COMMIT
Completed 200 OK in 67ms (Views: 14.8ms | ActiveRecord: 8.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f98c92811ccc362f56b238d3d33b2c4' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:00:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 16:00:57')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4f98c92811ccc362f56b238d3d33b2c4', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:00:57', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.0ms)
[1m[36mPermalink Load (0.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 52ms (Views: 19.9ms | ActiveRecord: 7.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:00:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c01b21d7a001f30631a7354e631474e8' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c01b21d7a001f30631a7354e631474e8', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:00:57', '2016-08-23 16:00:57')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 19, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 14[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.4ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 51ms (Views: 15.1ms | ActiveRecord: 5.7ms)
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d7cfddafedd22f19757b1851bfc4c29' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '4d7cfddafedd22f19757b1851bfc4c29', '1f2487b5ab29a0f58587335258d7f8e0', 20, '0.0.0.0', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:00:57', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab5d57225ec67c7f3330f249f6f12cbb' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 16:00:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 16:00:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ab5d57225ec67c7f3330f249f6f12cbb', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:00:57', '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d9c4ae3f862637cd4a4fdedca71ff9a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:00:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 22, '2016-08-23 16:00:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 22, '2016-08-23 16:00:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1d9c4ae3f862637cd4a4fdedca71ff9a', 'e7e9149c1fdfcd3be6736b651a0064bb', 22, '0.0.0.0', '2016-08-23 16:00:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 22, 'test_holding', 'holding', '2016-08-23 16:00:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-23 16:00:58', '2016-08-23 16:00:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2819f7189dcb025f8ed1cf19b747a1a2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:00:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 23, '2016-08-23 16:00:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 23, '2016-08-23 16:00:58')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2819f7189dcb025f8ed1cf19b747a1a2', 'e7e9149c1fdfcd3be6736b651a0064bb', 23, '0.0.0.0', '2016-08-23 16:00:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'test_holding', 'holding', '2016-08-23 16:00:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:00:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 16:00:58', '2016-08-23 16:00:58')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '92f8b3f43347be017ee423d03a4ee2d9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:00:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:00:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '92f8b3f43347be017ee423d03a4ee2d9', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2016-08-23 16:00:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a3f180900a02b1f1fb964bad176375ea' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:00:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:00:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 25, '2016-08-23 16:00:58')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a3f180900a02b1f1fb964bad176375ea', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 25, '0.0.0.0', '2016-08-23 16:00:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1d16623c2252a44153870a900bf3b34' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:00:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:00:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a1d16623c2252a44153870a900bf3b34', '1f2487b5ab29a0f58587335258d7f8e0', 26, '0.0.0.0', '2016-08-23 16:00:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.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', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:00:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '28969fe28ead666b1848727b97ca82ab' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:00:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 27, '2016-08-23 16:00:58')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '28969fe28ead666b1848727b97ca82ab', '9902a1d22a141a826ae31b1c83cb928c', 27, '0.0.0.0', '2016-08-23 16:00:58')[0m
[1m[35m (10.6ms)[0m COMMIT
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:00:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98a3733a40674d54dc4938155f20f532' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:00:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:00:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:00:58')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '98a3733a40674d54dc4938155f20f532', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:00:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (28, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:00:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:00:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:00:58', '2016-08-23 16:00:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (13.2ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (7.7ms)[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 (8.6ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (10.7ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (10.3ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (7.5ms)[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 (9.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (7.7ms)[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 (9.8ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (7.6ms)[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 (8.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.2ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.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 (12.2ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.9ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (33.8ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.5ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (13.0ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (10.2ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (10.8ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (8.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 (10.1ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (9.9ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (7.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 (9.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (9.3ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (7.6ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (8.6ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (7.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (38.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
-----------------------------------------------------------------
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 13ms (Views: 6.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 17ms (Views: 0.3ms | ActiveRecord: 1.6ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9108e76ab62f949b4167e43f6103a4ae' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:05:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 16:05:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '9108e76ab62f949b4167e43f6103a4ae', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 16:05:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 1\n', 1, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:05:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Redirected to http://test.host/resolve?umlaut.request_id=1&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A05%3A55-04%3A00&ctx_id=&ctx_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 19ms (ActiveRecord: 2.8ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '92521e3bf2e391f97aefd81709d6fe36' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '92521e3bf2e391f97aefd81709d6fe36', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:05:55')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A05%3A55-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9767029c368ba338a271c052290b900f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9767029c368ba338a271c052290b900f', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:05:55')[0m
[1m[35m (0.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 16:05:55', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A05%3A55-04%3A00&ctx_id=&ctx_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: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 303 See Other in 23ms (ActiveRecord: 3.2ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mDispatchedService Load (0.6ms)[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[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:05:55' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3b1e53707204f25b36108d980267c1c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b3b1e53707204f25b36108d980267c1c', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 16:05:55', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://example.org
Completed 302 Found in 12ms (ActiveRecord: 4.3ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '165b0fe1de295d2ae74d02def9429489' 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 (0.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 (1.2ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:05:55' WHERE `dispatched_services`.`id` = 2[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:05:55')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:05:55')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.5ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '165b0fe1de295d2ae74d02def9429489', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3dde004aff5c709e3da1629db4ad6df1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3dde004aff5c709e3da1629db4ad6df1', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 9ms (Views: 0.3ms | ActiveRecord: 1.8ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6eeabe1c5bfa3baa2df4d051d416f5ce' 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.1ms)[0m BEGIN
[1m[36mDispatchedService Load (1.7ms)[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 (1.0ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:05:55')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:05:55' WHERE `dispatched_services`.`id` = 3[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, 7, '2016-08-23 16:05:55')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[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` = 11[0m
[1m[35mSQL (0.8ms)[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', '6eeabe1c5bfa3baa2df4d051d416f5ce', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (5.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Redirected to http://test.host/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=2016-08-23T12%3A05%3A55-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a7d0d33301046379b5609d6a2493073b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 8, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 8, '2016-08-23 16:05:55')[0m
[1m[35m (11.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a7d0d33301046379b5609d6a2493073b', 'e7e9149c1fdfcd3be6736b651a0064bb', 8, '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 8, 'test_holding', 'holding', '2016-08-23 16:05:55')[0m
[1m[35m (5.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba2b5ae551126d9ef8026088c1e8d8ed' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 9, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 9, '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ba2b5ae551126d9ef8026088c1e8d8ed', 'e7e9149c1fdfcd3be6736b651a0064bb', 9, '0.0.0.0', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'test_holding', 'holding', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e40c4ef8148eee0dd95341d36a5101a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 16:05:55')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9e40c4ef8148eee0dd95341d36a5101a', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'test_holding', 'holding', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3e90b248127d174b5f0164d7b1f4e05' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e3e90b248127d174b5f0164d7b1f4e05', '1f2487b5ab29a0f58587335258d7f8e0', 11, '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb4f7691f455d6eb143bad40b6c99274' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:05:55')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'eb4f7691f455d6eb143bad40b6c99274', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (12, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:05:55', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2437d1e5346d58d048218982289b67f8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:05:55')
[1m[36mSQL (0.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, 13, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 13, '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2437d1e5346d58d048218982289b67f8', '62590701c6f35b45309577ef8c8c22b4', 13, '0.0.0.0', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5911b791041e89362c78b65a6f3632b1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 14, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 14, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[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, 14, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 14, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 14, '2016-08-23 16:05:55')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5911b791041e89362c78b65a6f3632b1', 'd95884a882a64501650fb8f9deae5104', 14, 'info:sid/google', '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64599e672dd2eda92e9133304a582e6a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 15, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 15, '2016-08-23 16:05:55')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 15, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 15, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 15, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 15, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 15, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 15, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 15, '2016-08-23 16:05:55')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '64599e672dd2eda92e9133304a582e6a', '06d451b80bf9fe3ce6849a48c98522d7', 15, 'info:sid/google', '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 15 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb344f6daeb6d1785e6f9b04657768bd' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'bb344f6daeb6d1785e6f9b04657768bd', '9902a1d22a141a826ae31b1c83cb928c', 16, '0.0.0.0', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca921a3c2ce53eb529aedd4db32df322' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 17, '2016-08-23 16:05:55')[0m
[1m[35m (11.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ca921a3c2ce53eb529aedd4db32df322', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 17, '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbec87cec790d558cd8c41c24d4b9959' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'cbec87cec790d558cd8c41c24d4b9959', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5091596e3da083636cdf9b33d34d90d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd5091596e3da083636cdf9b33d34d90d', '1f2487b5ab29a0f58587335258d7f8e0', 19, '0.0.0.0', '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:05:55')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:05:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0564cd267b3ec62534dcc7e42cd4eab7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:05:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0564cd267b3ec62534dcc7e42cd4eab7', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 20, '2016-08-23 16:05:55', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:05:55' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[36mDispatchedService Load (3.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mReferent Load (1.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (2.1ms)
[1m[35mServiceResponse Load (0.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (4.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (65.6ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 319ms (Views: 268.8ms | ActiveRecord: 10.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:05:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a799c705cb5b090736912653089a04d7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 21, '2016-08-23 16:05:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 21, '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a799c705cb5b090736912653089a04d7', 'a03fb1fb17f24f5ea845bf6c4450490b', 21, '127.0.0.1', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, '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', '2016-08-23 16:05:55')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:05:55' WHERE `dispatched_services`.`id` = 12
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.6ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 62ms (Views: 15.8ms | ActiveRecord: 6.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 2016-08-23 12:05:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed2a1ab93fd6616f1e9bbb141ade7518' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 22, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 22, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 22, '2016-08-23 16:05:55')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ed2a1ab93fd6616f1e9bbb141ade7518', 'bc13b80c2923ce2cbe0c8347141587a7', 22, '127.0.0.1', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:05:55' WHERE `dispatched_services`.`id` = 13[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 45ms (Views: 15.3ms | ActiveRecord: 7.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ffeb7f622873ab9e1f76d27538a52a93' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 23, '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 23, '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ffeb7f622873ab9e1f76d27538a52a93', '318e542032e1812e600e07efbdb1dfcc', 23, '0.0.0.0', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 23, '2016-08-23 16:05:55', '2016-08-23 16:05:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=23" for 127.0.0.1 at 2016-08-23 12:05:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[35mReferent Load (0.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 28ms (Views: 17.1ms | ActiveRecord: 3.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:05:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f96da3fb6f7f2fa819e68ddca39baf9f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:05:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:05:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f96da3fb6f7f2fa819e68ddca39baf9f', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:05:55')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:05:55', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:05:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:05:55' WHERE `dispatched_services`.`id` = 15
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 52ms (Views: 15.1ms | ActiveRecord: 8.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:05:56 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b84c1344813a4fd31393a198b0120ab1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:05:56')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:05:56')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2016-08-23 16:05:56')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'b84c1344813a4fd31393a198b0120ab1', '9902a1d22a141a826ae31b1c83cb928c', 25, '127.0.0.1', '2016-08-23 16:05:56')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:05:56', '2016-08-23 16:05:56')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25)[0m
[1m[35mDispatchedService Load (0.3ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:05:56')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:05:56' WHERE `dispatched_services`.`id` = 16[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 52ms (Views: 16.3ms | ActiveRecord: 7.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:05:56 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54394d42748610608ac0c69a1e5ca64d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:56')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:05:56')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:05:56')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '54394d42748610608ac0c69a1e5ca64d', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 16:05:56')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 26, '2016-08-23 16:05:56', '2016-08-23 16:05:56')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:05:56')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:05:56' WHERE `dispatched_services`.`id` = 17
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.9ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 26
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 54ms (Views: 14.7ms | ActiveRecord: 10.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:05:56 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ad0768b261675f047f54e1bc30c20e82' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:56')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:05:56')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 16:05:56')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ad0768b261675f047f54e1bc30c20e82', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 16:05:56')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 27, '2016-08-23 16:05:56', '2016-08-23 16:05:56')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`id` = 18 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:05:56')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:05:56' WHERE `dispatched_services`.`id` = 18
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 54ms (Views: 17.6ms | ActiveRecord: 8.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:05:56 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07f153d8154f1c8376f2c05721db864b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:56')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:05:56')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:05:56')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '07f153d8154f1c8376f2c05721db864b', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 16:05:56')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 28, '2016-08-23 16:05:56', '2016-08-23 16:05:56')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:05:56')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:05:56' WHERE `dispatched_services`.`id` = 19[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35mReferent Load (4.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (6.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 28
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 55ms (Views: 19.9ms | ActiveRecord: 9.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (18.2ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (32.4ms)[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 (12.6ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (8.9ms)[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 (12.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.1ms)[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 (12.4ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (10.4ms)[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 (11.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.0ms)[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 (11.4ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.6ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.7ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (31.6ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.0ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (13.7ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.0ms)[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 (11.0ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.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 (10.7ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (14.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 (9.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (11.2ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.4ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.6ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (20.8ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b890994190243edb8f8d6f9fc1da3f1a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:06:00')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:06:00')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b890994190243edb8f8d6f9fc1da3f1a', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:06:00')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:06:00')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:06:00')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:06:00', '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd11383da24189cdf87809ca2778257b9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:06:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd11383da24189cdf87809ca2778257b9', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2016-08-23 16:06:00')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'test_holding', 'holding', '2016-08-23 16:06:00')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:06:00', '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f4b1edac060ca0a1bc2502022f505ad9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:06:00')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.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', 'f4b1edac060ca0a1bc2502022f505ad9', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2016-08-23 16:06:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:06:00', '2016-08-23 16:06:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c668bc2fac92a057c93a8986d0aabb2d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c668bc2fac92a057c93a8986d0aabb2d', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 16:06:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:06:00')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '220389783b825b459efac20990dcabd5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:06:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:06:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '220389783b825b459efac20990dcabd5', '1f2487b5ab29a0f58587335258d7f8e0', 5, '0.0.0.0', '2016-08-23 16:06:00')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:06:00')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3dc64a4c71d1134b7310f0d99314603' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:00')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b3dc64a4c71d1134b7310f0d99314603', '9902a1d22a141a826ae31b1c83cb928c', 6, '0.0.0.0', '2016-08-23 16:06:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:06:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6744c5aba7b67e794b6f457fddb32bc9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:06:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 7, '2016-08-23 16:06:00')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6744c5aba7b67e794b6f457fddb32bc9', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 7, '0.0.0.0', '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:06:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:00 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c18f1e05ca8d5bd77172151835592ea' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:06:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:06:00')
[1m[36m (4.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1c18f1e05ca8d5bd77172151835592ea', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:06:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 8, '2016-08-23 16:06:00', '2016-08-23 16:06:00')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:06:00')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.3ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (2.6ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:00' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[36mDispatchedService Load (3.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.6ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (64.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 357ms (Views: 282.2ms | ActiveRecord: 15.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:06:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed4da81ada20816a5742fc5afc4cdae5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 9, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 9, '2016-08-23 16:06:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ed4da81ada20816a5742fc5afc4cdae5', 'a03fb1fb17f24f5ea845bf6c4450490b', 9, '127.0.0.1', '2016-08-23 16:06:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:06:01', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, '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', '2016-08-23 16:06:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.7ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 53ms (Views: 16.0ms | ActiveRecord: 7.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 2016-08-23 12:06:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cddd8d88b3ff17f831d2de8642dec51e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 10, '2016-08-23 16:06:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 10, '2016-08-23 16:06:01')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'cddd8d88b3ff17f831d2de8642dec51e', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 16:06:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:06:01', '2016-08-23 16:06:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.2ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (5.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (24.5ms)
[1m[36mPermalink Load (0.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 61ms (Views: 26.8ms | ActiveRecord: 6.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '91f1dbd29ade5d83f48c17009c50bacd' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 16:06:01')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '91f1dbd29ade5d83f48c17009c50bacd', '318e542032e1812e600e07efbdb1dfcc', 11, '0.0.0.0', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 11, '2016-08-23 16:06:01', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=11" for 127.0.0.1 at 2016-08-23 12:06:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"11"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 37ms (Views: 26.2ms | ActiveRecord: 3.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f0e1306ea19c19f3f9de25b69c01a8b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:06:01')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=9789810743734\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '9f0e1306ea19c19f3f9de25b69c01a8b', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:06:01', '2016-08-23 16:06:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (0.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (23.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 24.0ms | ActiveRecord: 8.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:06:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4699f2f8f65bf4db4969de411b1d0b93' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 13, '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', '4699f2f8f65bf4db4969de411b1d0b93', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 16:06:01')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:06:01', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (2.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.7ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 55ms (Views: 16.4ms | ActiveRecord: 7.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e4cbbaad4e1dad8f769383fa33c15d25' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e4cbbaad4e1dad8f769383fa33c15d25', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 16:06:01')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:06:01', '2016-08-23 16:06:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.0ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 55ms (Views: 20.1ms | ActiveRecord: 7.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd2af376a255c7a45846191267245a3a9' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd2af376a255c7a45846191267245a3a9', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:06:01', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 54ms (Views: 14.9ms | ActiveRecord: 8.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '155613df40d30e73796eff25b6d6c6af' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '155613df40d30e73796eff25b6d6c6af', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:06:01', '2016-08-23 16:06:01')
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 12
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 55ms (Views: 16.6ms | ActiveRecord: 8.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 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 (0.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: 0.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be01ba485f6a73fc0330ec7e9d837774' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:06:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 16:06:01')[0m
[1m[35m (11.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'be01ba485f6a73fc0330ec7e9d837774', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 16:06:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 17
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 17\n', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:01')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T12%3A06%3A01-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c94ac57af81a27c40da15a55c7533350' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 16:06:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c94ac57af81a27c40da15a55c7533350', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 18, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 18
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 18\n', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A06%3A01-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7da488ec995b49650a559970dff42897' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 16:06:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7da488ec995b49650a559970dff42897', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 16:06:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:06:01')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 19, '2016-08-23 16:06:01', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
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=2016-08-23T12%3A06%3A01-04%3A00&ctx_id=&ctx_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: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 303 See Other in 11ms (ActiveRecord: 2.2ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mDispatchedService Load (0.5ms)[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[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 13[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09034e9c5a5320ef56104b2bdff90d51' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '09034e9c5a5320ef56104b2bdff90d51', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 20, '2016-08-23 16:06:01', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Redirected to http://example.org
Completed 302 Found in 10ms (ActiveRecord: 2.5ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[36mRequest Load (2.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0faf40591ff0cdad61b9035336dcbdab' 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.1ms)[0m BEGIN
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:06:01')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 14[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 16:06:01')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.5ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[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` = 23[0m
[1m[35mSQL (0.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', '0faf40591ff0cdad61b9035336dcbdab', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 16:06:01')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 21, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ccfd0b9ff96ba1688ac9e35ee57ab8f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7ccfd0b9ff96ba1688ac9e35ee57ab8f', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:06:01')[0m
[1m[35m (0.5ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 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` = 22 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 22, '2016-08-23 16:06:01', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 14ms (Views: 0.3ms | ActiveRecord: 3.6ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3d1af7ad479ce092ec08c4f0be7989f' 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 (0.4ms)[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 (1.2ms)[0m BEGIN
[1m[36m (2.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01')
[1m[36mSQL (0.6ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 15[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:06:01')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:06:01')
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'd3d1af7ad479ce092ec08c4f0be7989f', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
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=2016-08-23T12%3A06%3A01-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.3ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3d129a36a1113e661c815907259db13' 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.1ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 24, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 24, '2016-08-23 16:06:01')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'c3d129a36a1113e661c815907259db13', 'e7e9149c1fdfcd3be6736b651a0064bb', 24, '0.0.0.0', '2016-08-23 16:06:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (24, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:06:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:06:01')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 16:06:01', '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0b282a7728496fe0fca16dc29dfa0b9d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 25, '2016-08-23 16:06:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 25, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 25, '2016-08-23 16:06:01')
[1m[36mSQL (0.2ms)[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, 25, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 25, '2016-08-23 16:06:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 25, '2016-08-23 16:06:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0b282a7728496fe0fca16dc29dfa0b9d', 'd95884a882a64501650fb8f9deae5104', 25, 'info:sid/google', '0.0.0.0', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:06:01')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 16:06:01', '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4bee499ff1d52067fd5a7fec4cd7d995' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:06:01')
[1m[36mSQL (0.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, 26, '2016-08-23 16:06:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2016-08-23 16:06:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4bee499ff1d52067fd5a7fec4cd7d995', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2016-08-23 16:06:02')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, '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', '2016-08-23 16:06:02')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af52d3a909054c4c88d59df090a43858' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:06:02')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:06:02')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2016-08-23 16:06:02')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2016-08-23 16:06:02')
[1m[36mSQL (0.1ms)[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, '2016-08-23 16:06:02')[0m
[1m[35mSQL (0.2ms)[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, '2016-08-23 16:06:02')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2016-08-23 16:06:02')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2016-08-23 16:06:02')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2016-08-23 16:06:02')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2016-08-23 16:06:02')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2016-08-23 16:06:02')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'af52d3a909054c4c88d59df090a43858', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 16:06:02')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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 (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:06:02', '2016-08-23 16:06:02')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8c90ff05c1fc94d3c0da9b56afcedbe' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:02')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:06:02')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:06:02')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c8c90ff05c1fc94d3c0da9b56afcedbe', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:06:02')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:06:02')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:06:02', '2016-08-23 16:06:02')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (19.3ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (11.7ms)[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 (16.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (18.7ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (17.5ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (11.4ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (31.8ms)[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 (12.2ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.6ms)[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 (12.6ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.4ms)[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 (11.2ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.9ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.7ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (23.4ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (18.2ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (14.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 (37.0ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (21.6ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (22.4ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (13.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 (16.9ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (15.4ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (12.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 (16.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (19.7ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (14.7ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (40.1ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (19.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.6ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
-----------------------------------------------------------------
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: 10.0ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 18ms (Views: 0.2ms | ActiveRecord: 1.7ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '75e6373bd83ca2b4ec45cc618984a091' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:06:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 16:06:12')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '75e6373bd83ca2b4ec45cc618984a091', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 16:06:12')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 1\n', 1, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:12')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Redirected to http://test.host/resolve?umlaut.request_id=1&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A06%3A12-04%3A00&ctx_id=&ctx_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 19ms (ActiveRecord: 2.5ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e85f8e0ae82a2826c0dce3e302e5d463' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:06:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 16:06:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e85f8e0ae82a2826c0dce3e302e5d463', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 16:06:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:12')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A06%3A12-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.9ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63e81afe5622433efeefc00b726ae131' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:06:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:06:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '63e81afe5622433efeefc00b726ae131', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:06:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:12')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 16:06:12', '2016-08-23 16:06:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A06%3A12-04%3A00&ctx_id=&ctx_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: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 303 See Other in 25ms (ActiveRecord: 4.7ms)
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mDispatchedService Load (0.6ms)[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[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:06:12' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d4a68e3478c9a9d30f5be3cd5a4eb37' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:06:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:06:12')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9d4a68e3478c9a9d30f5be3cd5a4eb37', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:06:12')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:12')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 16:06:12', '2016-08-23 16:06:12')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://example.org
Completed 302 Found in 12ms (ActiveRecord: 4.0ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1119a8b8f92e392c622cf57ae6ccf994' 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 (0.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 (1.2ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:06:12' WHERE `dispatched_services`.`id` = 2[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:06:12')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:06:12')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '1119a8b8f92e392c622cf57ae6ccf994', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:06:12')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:12')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:12')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '27be3f9024719a477cb74edb8a7e7877' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:06:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:06:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '27be3f9024719a477cb74edb8a7e7877', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:06:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:06:12', '2016-08-23 16:06:12')
[1m[36m (11.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:12')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Rendered text template (0.0ms)
Completed 403 Forbidden in 33ms (Views: 0.4ms | ActiveRecord: 20.4ms)
----------------------------------------------------------------------------
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` = 6 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` = 'd0c958d7c7f033a6ecc3b13520a718a7' 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.3ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (6.0ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:06:12' WHERE `dispatched_services`.`id` = 3[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:06:12')
[1m[36m (0.1ms)[0m [1mBEGIN[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, 7, '2016-08-23 16:06:12')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd0c958d7c7f033a6ecc3b13520a718a7', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:06:12')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Redirected to http://test.host/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=2016-08-23T12%3A06%3A12-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f37d2c3833349a6328dbbd5686d7a7c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:06:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:06:12')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0f37d2c3833349a6328dbbd5686d7a7c', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:06:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 8, '2016-08-23 16:06:12', '2016-08-23 16:06:12')[0m
[1m[35m (6.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:06:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:12' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (6.0ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (4.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (63.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (9.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 324ms (Views: 262.8ms | ActiveRecord: 15.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:06:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99f5879dd8c5e5aaebde8f67b48d653a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 9, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 9, '2016-08-23 16:06:13')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '99f5879dd8c5e5aaebde8f67b48d653a', 'a03fb1fb17f24f5ea845bf6c4450490b', 9, '127.0.0.1', '2016-08-23 16:06:13')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:06:13', '2016-08-23 16:06:13')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (6.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, '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', '2016-08-23 16:06:13')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:13' WHERE `dispatched_services`.`id` = 5
[1m[36m (4.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.5ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (4.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 69ms (Views: 15.7ms | ActiveRecord: 7.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 2016-08-23 12:06:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '93d29385ebee5c97d4a22ef7c3da53ef' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 10, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 10, '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '93d29385ebee5c97d4a22ef7c3da53ef', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 16:06:13')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:06:13', '2016-08-23 16:06:13')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:13' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.8ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 44ms (Views: 16.1ms | ActiveRecord: 5.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f73b830e84da9c980fa6c167a5f24746' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 16:06:13')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f73b830e84da9c980fa6c167a5f24746', '318e542032e1812e600e07efbdb1dfcc', 11, '0.0.0.0', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 11, '2016-08-23 16:06:13', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=11" for 127.0.0.1 at 2016-08-23 12:06:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"11"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.7ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 25ms (Views: 17.2ms | ActiveRecord: 3.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f45224edb541cb87186bcb9f2a0eb5c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:06:13')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1f45224edb541cb87186bcb9f2a0eb5c', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:06:13')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:06:13', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:13' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 53ms (Views: 19.1ms | ActiveRecord: 8.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:06:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f3ff9ef6979d11aa2c97c78feae07fec' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 13, '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'f3ff9ef6979d11aa2c97c78feae07fec', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:06:13', '2016-08-23 16:06:13')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:13')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:13' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.7ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 52ms (Views: 16.7ms | ActiveRecord: 8.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49112a4bd9dfd6c7f30c4d2c7fa2de8f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '49112a4bd9dfd6c7f30c4d2c7fa2de8f', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 16:06:13')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:06:13', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (5.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:06:13')
[1m[36m (11.0ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:13' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.2ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 68ms (Views: 18.1ms | ActiveRecord: 6.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a01a119f87c98e8f02e8c2922d3849be' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a01a119f87c98e8f02e8c2922d3849be', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:06:13')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:06:13', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:13' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (7.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.2ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 55ms (Views: 20.1ms | ActiveRecord: 7.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:13 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '586b30922c2e684c773bbba318b930fc' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '586b30922c2e684c773bbba318b930fc', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:06:13', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:13' WHERE `dispatched_services`.`id` = 12
[1m[36m (2.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 50ms (Views: 15.1ms | ActiveRecord: 9.4ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e886644c9866e120dd76879ad2bad06' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[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, 17, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 17, '2016-08-23 16:06:13')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1e886644c9866e120dd76879ad2bad06', '62590701c6f35b45309577ef8c8c22b4', 17, '0.0.0.0', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, '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', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2a0b511a1a56a37efed459e8fdc5d76' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 18, '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 18, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[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, 18, '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 18, '2016-08-23 16:06:13')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f2a0b511a1a56a37efed459e8fdc5d76', 'd95884a882a64501650fb8f9deae5104', 18, 'info:sid/google', '0.0.0.0', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:06:13', '2016-08-23 16:06:13')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd3e56eac55cf06f125b843bc281b5ca' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 19, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 19, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.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, 19, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 19, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 19, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 19, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 19, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 19, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 19, '2016-08-23 16:06:13')
[1m[36m (5.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'cd3e56eac55cf06f125b843bc281b5ca', '06d451b80bf9fe3ce6849a48c98522d7', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 16:06:13')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 16:06:13', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mServiceResponse Exists (0.3ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 19 LIMIT 1
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2562a34918d9ed97a85d155acaf283fb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2562a34918d9ed97a85d155acaf283fb', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'test_holding', 'holding', '2016-08-23 16:06:13')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:06:13', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2aefeb36b8a81288ac04be93e4d0f5bd' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2aefeb36b8a81288ac04be93e4d0f5bd', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 16:06:13')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[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: Not Charged\n', 21, 'test_holding', 'holding', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:06:13', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e85a0ed4b2464780c985b4d3caead472' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 22, '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 22, '2016-08-23 16:06:13')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e85a0ed4b2464780c985b4d3caead472', 'e7e9149c1fdfcd3be6736b651a0064bb', 22, '0.0.0.0', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 22, 'test_holding', 'holding', '2016-08-23 16:06:13')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-23 16:06:13', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c585e80e55293625db87a6294e53827' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8c585e80e55293625db87a6294e53827', '1f2487b5ab29a0f58587335258d7f8e0', 23, '0.0.0.0', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:06:13')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 16:06:13', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8af33797d75ea0bda007d2c139c7522c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:13')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 24, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 24, '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8af33797d75ea0bda007d2c139c7522c', 'e7e9149c1fdfcd3be6736b651a0064bb', 24, '0.0.0.0', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (24, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 16:06:13', '2016-08-23 16:06:13')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f5b9b1ff6e3e82522b0b7994aff08014' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 25, '2016-08-23 16:06:13')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f5b9b1ff6e3e82522b0b7994aff08014', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 25, '0.0.0.0', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:06:13')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76222cee4b8962bdb7cf6fb5277d649b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '76222cee4b8962bdb7cf6fb5277d649b', '1f2487b5ab29a0f58587335258d7f8e0', 26, '0.0.0.0', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a3001f6c42760dda3c29f25e5f7ff08b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:13')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 27, '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a3001f6c42760dda3c29f25e5f7ff08b', '9902a1d22a141a826ae31b1c83cb928c', 27, '0.0.0.0', '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:06:13')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6ee38e1c1abb0e4698fd6feffbed13c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:06:13')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:06:13')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd6ee38e1c1abb0e4698fd6feffbed13c', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:06:13')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:06:13')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (37.0ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (10.4ms)[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 (12.7ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.7ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (11.9ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.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 (11.6ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.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 (10.9ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (10.0ms)[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 (10.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.2ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.9ms)[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 (11.8ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.1ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (13.4ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (11.7ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.2ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (30.7ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (10.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 (10.8ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (11.8ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.2ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.7ms)[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 (11.8ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.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 (11.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.6ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.6ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.0ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.4ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (6.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36m (0.2ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:24 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4bba4a7d6f24c193aaa190278d6f1a78' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:24')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:06:24')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:06:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4bba4a7d6f24c193aaa190278d6f1a78', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 16:06:24')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 16:06:24', '2016-08-23 16:06:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 500 Internal Server Error in 107ms (ActiveRecord: 30.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:06:24 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26bdb29c269d6cfc3e382c45e3c8661c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:06:24')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:06:24')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:06:24')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 16:06:24')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 16:06:24')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '26bdb29c269d6cfc3e382c45e3c8661c', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:06:24')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 16:06:24', '2016-08-23 16:06:24')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:06:24')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:24' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mDispatchedService Load (5.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mDispatchedService Load (0.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (61.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (21.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 301ms (Views: 240.7ms | ActiveRecord: 8.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 2016-08-23 12:06:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f664799fddcf82d8db4a2b1c0823a64d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:06:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 16:06:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 16:06:25')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f664799fddcf82d8db4a2b1c0823a64d', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 16:06:25')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 16:06:25', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (0.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 (0.3ms)[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[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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` = 3 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 49ms (Views: 16.6ms | ActiveRecord: 8.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74c75c0556bc8386b89cd6fb38e29c01' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:06:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 16:06:25')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '74c75c0556bc8386b89cd6fb38e29c01', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 16:06:25', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 12:06:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.9ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 32ms (Views: 22.6ms | ActiveRecord: 3.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f87b701cd4f8689bc16abefed729c43d' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:06:25')
[1m[36m (5.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f87b701cd4f8689bc16abefed729c43d', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:06:25')[0m
[1m[35m (4.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 16:06:25', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mReferent Load (0.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mReferent Load (2.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.0ms)
[1m[35mServiceResponse Load (0.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (3.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (24.0ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.4ms)[0m COMMIT
Completed 200 OK in 87ms (Views: 24.1ms | ActiveRecord: 18.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:06:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f4a39f2432a3b01c77f5f5f07c0c4e4e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:06:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f4a39f2432a3b01c77f5f5f07c0c4e4e', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 16:06:25', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:25')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.2ms)
[1m[35mServiceResponse Load (0.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.5ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (23.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.5ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 25.9ms | ActiveRecord: 6.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b03a89127250ba268cc2bfba486783bd' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:06:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b03a89127250ba268cc2bfba486783bd', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 16:06:25', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (0.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 (0.5ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 7
[1m[36m (12.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 71ms (Views: 16.0ms | ActiveRecord: 19.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f16f2556d67606f784364cb3c801ac83' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:06:25')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f16f2556d67606f784364cb3c801ac83', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:06:25', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.9ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 52ms (Views: 14.8ms | ActiveRecord: 7.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:06:25 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b90c6834a91ad7b5d962191c0858b05' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:06:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:06:25')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7b90c6834a91ad7b5d962191c0858b05', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:06:25')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:06:25', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.2ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.2ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 51ms (Views: 16.3ms | ActiveRecord: 6.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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`
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: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5734f4741a9feb4d87f5077d59c62abf' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5734f4741a9feb4d87f5077d59c62abf', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 10
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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: No existing bd_request_prompt response found for request 10\n', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A06%3A25-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.2ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf3a4e0d99cbeee15e9a22c6e2509a2d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:06:25')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'bf3a4e0d99cbeee15e9a22c6e2509a2d', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:06:25')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 8
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 8\n', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A06%3A25-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ccbeb77825d6b3a0940a33c71994d938' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:06:25')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 16:06:25')[0m
[1m[35m (11.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ccbeb77825d6b3a0940a33c71994d938', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 16:06:25')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:25')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 12, '2016-08-23 16:06:25', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
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=2016-08-23T12%3A06%3A25-04%3A00&ctx_id=&ctx_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: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 303 See Other in 10ms (ActiveRecord: 2.0ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mDispatchedService Load (0.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[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da30e1f6c39de111481b9c3b40e8bcce' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:06:25')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'da30e1f6c39de111481b9c3b40e8bcce', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:06:25')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:06:25')[0m
[1m[35m (0.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 13, '2016-08-23 16:06:25', '2016-08-23 16:06:25')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Redirected to http://example.org
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 302 Found in 16ms (ActiveRecord: 2.8ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mDispatchedService Load (1.1ms)[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[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30ba4c7248b69499ae55bed33139a6ca' 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.3ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 11
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:06:25')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 13
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '30ba4c7248b69499ae55bed33139a6ca', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"14"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 14, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '992f840fab71dc167cd5b8c6174eb5f6' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:06:25')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '992f840fab71dc167cd5b8c6174eb5f6', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 15, '2016-08-23 16:06:25', '2016-08-23 16:06:25')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:25')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 14ms (Views: 0.3ms | ActiveRecord: 2.5ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9847440404ffcecf500c5b1bead6040' 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 (0.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[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25')[0m
[1m[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 12
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:06:25')[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 16:06:25')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 17[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c9847440404ffcecf500c5b1bead6040', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 16:06:25')
[1m[36m (10.1ms)[0m [1mCOMMIT[0m
[1m[35m (8.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:25')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A06%3A25-04%3A00&ctx_id=&ctx_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 9ms (ActiveRecord: 1.9ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.8ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (8.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 (13.7ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (15.4ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (11.1ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.9ms)[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 (11.1ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (21.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 (16.7ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (18.4ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (14.8ms)[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 (19.0ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (19.0ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (35.1ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (15.0ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (18.0ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (15.8ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (12.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 (15.2ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (25.1ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (17.7ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (14.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 (16.5ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (43.1ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (11.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (12.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.3ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (13.2ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (10.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.6ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[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: 8.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 16ms (Views: 0.2ms | ActiveRecord: 1.8ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77cf71dd8378d92cd080d5343ad31247' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 16:07:12')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '77cf71dd8378d92cd080d5343ad31247', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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: No existing bd_request_prompt response found for request 1\n', 1, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Redirected to http://test.host/resolve?umlaut.request_id=1&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A07%3A12-04%3A00&ctx_id=&ctx_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 19ms (ActiveRecord: 3.5ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a4a99820aadb5b1ea80979e90a5b147' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6a4a99820aadb5b1ea80979e90a5b147', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:12')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A07%3A12-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e025849e19360c6c74613206623e0631' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:07:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:07:12')[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e025849e19360c6c74613206623e0631', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:07:12')
[1m[36m (4.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 16:07:12', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A07%3A12-04%3A00&ctx_id=&ctx_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 21ms (ActiveRecord: 3.2ms)
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"","PatronId":null}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"\",\"PatronId\":null}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:07:12' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '576e0bfdd5de134238d2142e3d4b155b' 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.5ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:07:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '576e0bfdd5de134238d2142e3d4b155b', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 16:07:12', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://example.org
Completed 302 Found in 13ms (ActiveRecord: 4.1ms)
---------------------------------------------------------------------------------
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 http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"","PatronId":null}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e5e288a5b60e1e5aaa991dcf6893713' 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 (0.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 (1.7ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"\",\"PatronId\":null}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:07:12' WHERE `dispatched_services`.`id` = 2[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:07:12')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:07:12')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '6e5e288a5b60e1e5aaa991dcf6893713', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:12')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6194207feb4a19b1964fe60dd98b38a6' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6194207feb4a19b1964fe60dd98b38a6', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:07:12', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
BorrowDirect: Error placing request: ArgumentError Request URI must have schema. Possibly add 'http://' to the request URI?. Backtrace:
httpclient (2.8.0) lib/httpclient/session.rb:200:in `get_session'
httpclient (2.8.0) lib/httpclient/session.rb:168:in `query'
httpclient (2.8.0) lib/httpclient.rb:1238:in `do_get_block'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Rendered text template (0.0ms)
Completed 403 Forbidden in 13ms (Views: 0.3ms | ActiveRecord: 2.2ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mDispatchedService Load (1.0ms)[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[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1598542cc874f16dc487bd09e8b4fc52' 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.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: Request URI must have schema. Possibly add \'http://\' to the request URI?\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:200:in\n `get_session\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:168:in\n `query\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1238:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:07:12' WHERE `dispatched_services`.`id` = 3[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:07:12')
[1m[36m (4.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:07:12')
[1m[36mSQL (0.9ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36mSQL (0.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', '1598542cc874f16dc487bd09e8b4fc52', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:12')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Redirected to http://test.host/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=2016-08-23T12%3A07%3A12-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f11078a039dec61ed24fcf20105b43b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:07:12')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9f11078a039dec61ed24fcf20105b43b', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 8, '2016-08-23 16:07:12', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (6.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 500 Internal Server Error in 33ms (ActiveRecord: 9.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:07:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '70bce4e04ecc52246840c5a4e5c0652f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:07:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 9, '2016-08-23 16:07:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 9, '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '70bce4e04ecc52246840c5a4e5c0652f', 'a03fb1fb17f24f5ea845bf6c4450490b', 9, '127.0.0.1', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:07:12', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (0.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, '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', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:07:12' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (6.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (5.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (10.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (62.9ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 295ms (Views: 259.3ms | ActiveRecord: 7.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 2016-08-23 12:07:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa25b813e791f6495313d3c2b8d72e0c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:07:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 10, '2016-08-23 16:07:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 10, '2016-08-23 16:07:12')
[1m[36m (1.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fa25b813e791f6495313d3c2b8d72e0c', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 16:07:12')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:07:12', '2016-08-23 16:07:12')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:07:12' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 45ms (Views: 14.2ms | ActiveRecord: 6.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a75e0740bb81b528f6f704fa3dd1b39f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 16:07:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 16:07:12')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a75e0740bb81b528f6f704fa3dd1b39f', '318e542032e1812e600e07efbdb1dfcc', 11, '0.0.0.0', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 11, '2016-08-23 16:07:12', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=11" for 127.0.0.1 at 2016-08-23 12:07:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"11"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 23ms (Views: 14.5ms | ActiveRecord: 3.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f78bcb5f3f71abe2337a896e4fdf059d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:07:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:07:12')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f78bcb5f3f71abe2337a896e4fdf059d', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:07:12', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)
[1m[36mDispatchedService Load (0.5ms)[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 (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:07:12')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"","PatronId":""}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 3 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 29ms (ActiveRecord: 2.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:07:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b693f7582effcc790eb99ad73bda381' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:07:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 13, '2016-08-23 16:07:12')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', '8b693f7582effcc790eb99ad73bda381', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 16:07:12')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:07:12', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"","PatronId":""}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 26ms (ActiveRecord: 2.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '25b55ced05047862a6396d90d72e849d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:07:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 16:07:12')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '25b55ced05047862a6396d90d72e849d', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 16:07:12')
[1m[36m (5.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:07:12', '2016-08-23 16:07:12')
[1m[36m (4.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"","PatronId":""}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 47ms (ActiveRecord: 18.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b05b312234aeaacfd908e7c9e5d0f7f8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:07:12')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b05b312234aeaacfd908e7c9e5d0f7f8', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:07:12', '2016-08-23 16:07:12')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:07:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"","PatronId":""}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 31ms (ActiveRecord: 3.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:12 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f84819e057624d60441207ffe595e5dc' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:07:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:07:12')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f84819e057624d60441207ffe595e5dc', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:07:12', '2016-08-23 16:07:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.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[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:07:12')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"","PatronId":""}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 28ms (ActiveRecord: 2.9ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.1ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (7.4ms)[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 (14.8ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.1ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.1ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (11.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.0ms)[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 (11.6ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (11.7ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.3ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.9ms)[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 (10.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (34.8ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.9ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (11.6ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.5ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.5ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (10.0ms)[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 (11.2ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.9ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (8.7ms)[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 (11.9ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (11.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 (8.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 (10.2ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.7ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (10.0ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (12.7ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ab5848ab14460478ca14b3710e5b216' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '4ab5848ab14460478ca14b3710e5b216', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:07:31')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:07:31')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:07:31', '2016-08-23 16:07:31')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de61c7b93bdf7c760e2fbfe1caf401f9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'de61c7b93bdf7c760e2fbfe1caf401f9', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:07:31', '2016-08-23 16:07:31')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3bf719b82049c7971ca8ea8de2d88d28' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3bf719b82049c7971ca8ea8de2d88d28', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 3, 'test_holding', 'holding', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:07:31', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81aeec632c870dbb957fdd80ceb14ffa' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 4, '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 4, '2016-08-23 16:07:31')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '81aeec632c870dbb957fdd80ceb14ffa', 'e7e9149c1fdfcd3be6736b651a0064bb', 4, '0.0.0.0', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (4, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:07:31')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:07:31', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '997518b04d80992e19f1a1a9600167a3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '997518b04d80992e19f1a1a9600167a3', '1f2487b5ab29a0f58587335258d7f8e0', 5, '0.0.0.0', '2016-08-23 16:07:31')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:07:31', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[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.2ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 14ms (Views: 8.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fec35dff1ee6b8e8a3446abf86d8fa8d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:07:31')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fec35dff1ee6b8e8a3446abf86d8fa8d', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:07:31')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 6
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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: No existing bd_request_prompt response found for request 6\n', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Redirected to http://test.host/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=2016-08-23T12%3A07%3A31-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 1.4ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '75dc2b60e660b743d53776e9a123fffb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:07:31')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '75dc2b60e660b743d53776e9a123fffb', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 10
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 10\n', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Redirected to http://test.host/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=2016-08-23T12%3A07%3A31-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '28c6a459a9017989b1bcd05785498de7' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 16:07:31')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '28c6a459a9017989b1bcd05785498de7', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 8, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2016-08-23 16:07:31', '2016-08-23 16:07:31')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:07:31')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Redirected to http://test.host/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=2016-08-23T12%3A07%3A31-04%3A00&ctx_id=&ctx_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 39ms (ActiveRecord: 24.4ms)
[1m[36mDispatchedService Load (2.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:07:31' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 13
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0727775892d537d6120eb0f142a00b7f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 16:07:31')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0727775892d537d6120eb0f142a00b7f', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 16:07:31')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 9, '2016-08-23 16:07:31', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Redirected to http://example.org
Completed 302 Found in 15ms (ActiveRecord: 8.1ms)
---------------------------------------------------------------------------------
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 http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eca40661ae6496c894d2e7804dfbaf34' 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 (4.0ms)[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 (2.2ms)[0m [1mBEGIN[0m
[1m[35m (1.9ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:07:31' WHERE `dispatched_services`.`id` = 7
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:07:31')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:07:31')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 15
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.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', 'eca40661ae6496c894d2e7804dfbaf34', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:07:31')[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3c667fa9db0ce520c793c7f15271d271' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3c667fa9db0ce520c793c7f15271d271', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 11, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 11, '2016-08-23 16:07:31', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
BorrowDirect: Error placing request: ArgumentError Request URI must have schema. Possibly add 'http://' to the request URI?. Backtrace:
httpclient (2.8.0) lib/httpclient/session.rb:200:in `get_session'
httpclient (2.8.0) lib/httpclient/session.rb:168:in `query'
httpclient (2.8.0) lib/httpclient.rb:1238:in `do_get_block'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Rendered text template (0.0ms)
Completed 403 Forbidden in 13ms (Views: 0.8ms | ActiveRecord: 2.3ms)
[1m[35mDispatchedService Load (0.4ms)[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
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36m (5.0ms)[0m [1mBEGIN[0m
[1m[35mRequest Load (2.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '56a044ff33584aa6ca2906de1ee1d43c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: Request URI must have schema. Possibly add \'http://\' to the request URI?\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:200:in\n `get_session\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:168:in\n `query\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1238:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:07:31' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:07:31')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 16:07:31')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '56a044ff33584aa6ca2906de1ee1d43c', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 16:07:31')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A07%3A31-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a912f80b78f0b7858a47c1f0e942aba2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:07:31')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:07:31')[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a912f80b78f0b7858a47c1f0e942aba2', '1f2487b5ab29a0f58587335258d7f8e0', 13, '0.0.0.0', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84778eacbda0dc9ec2e37a9ed6664841' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 14, '2016-08-23 16:07:31')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '84778eacbda0dc9ec2e37a9ed6664841', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 14, '0.0.0.0', '2016-08-23 16:07:31')[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:07:31')[0m
[1m[35m (11.3ms)[0m COMMIT
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '161eedbb4d7a14df1fee2fb304a1210a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:07:31')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 15, '2016-08-23 16:07:31')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '161eedbb4d7a14df1fee2fb304a1210a', '9902a1d22a141a826ae31b1c83cb928c', 15, '0.0.0.0', '2016-08-23 16:07:31')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4582be693337e04f1b54de741794347c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:31')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4582be693337e04f1b54de741794347c', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:07:31')[0m
[1m[35m (0.3ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:31 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ec0a07457050007fb99a471c625283b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:31')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:07:31')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:07:31')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9ec0a07457050007fb99a471c625283b', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 17, '2016-08-23 16:07:31', '2016-08-23 16:07:31')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:07:32')
[1m[36m (1.6ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError Request URI must have schema. Possibly add 'http://' to the request URI?. Backtrace:
httpclient (2.8.0) lib/httpclient/session.rb:200:in `get_session'
httpclient (2.8.0) lib/httpclient/session.rb:168:in `query'
httpclient (2.8.0) lib/httpclient.rb:1238:in `do_get_block'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: Request URI must have schema. Possibly add \'http://\' to the request URI?\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:200:in\n `get_session\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:168:in\n `query\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1238:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:07:32' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mDispatchedService Load (6.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[36mReferent Load (4.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (63.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 312ms (Views: 251.6ms | ActiveRecord: 12.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:07:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cfb2cc0c045c1530f63351a9a6841b6e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 18, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 18, '2016-08-23 16:07:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'cfb2cc0c045c1530f63351a9a6841b6e', 'a03fb1fb17f24f5ea845bf6c4450490b', 18, '127.0.0.1', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:07:32', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:07:32')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.6ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:07:32' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (28.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (39.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 77ms (Views: 41.1ms | ActiveRecord: 6.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 2016-08-23 12:07:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29a486c6184f6c071520c8cc506e8482' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:07:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 19, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 19, '2016-08-23 16:07:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 19, '2016-08-23 16:07:32')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '29a486c6184f6c071520c8cc506e8482', 'bc13b80c2923ce2cbe0c8347141587a7', 19, '127.0.0.1', '2016-08-23 16:07:32')
[1m[36m (10.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:07:32', '2016-08-23 16:07:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:07:32' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 69ms (Views: 14.2ms | ActiveRecord: 22.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c611c206d79d5d810874233f98f2c213' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 20, '2016-08-23 16:07:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c611c206d79d5d810874233f98f2c213', '318e542032e1812e600e07efbdb1dfcc', 20, '0.0.0.0', '2016-08-23 16:07:32')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 20, '2016-08-23 16:07:32', '2016-08-23 16:07:32')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=20" for 127.0.0.1 at 2016-08-23 12:07:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"20"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 25ms (Views: 15.9ms | ActiveRecord: 3.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e3794835f36c45b944e90940756b1de' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 16:07:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '7e3794835f36c45b944e90940756b1de', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:07:32', '2016-08-23 16:07:32')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 21, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 3 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 50ms (ActiveRecord: 4.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:07:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fca9ab21de8165a6e391e8971d20a2d7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 22, '2016-08-23 16:07:32')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fca9ab21de8165a6e391e8971d20a2d7', '9902a1d22a141a826ae31b1c83cb928c', 22, '127.0.0.1', '2016-08-23 16:07:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 16:07:32', '2016-08-23 16:07:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (12.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:07:32')
[1m[36m (4.9ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 69ms (ActiveRecord: 3.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3d82744d75bf8f92c0b70677224f6727' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:07:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3d82744d75bf8f92c0b70677224f6727', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:07:32')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 16:07:32', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 46ms (ActiveRecord: 3.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '858acbe45326b0142268cdee4dfd5ae9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:07:32')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '858acbe45326b0142268cdee4dfd5ae9', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:07:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:07:32', '2016-08-23 16:07:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24)[0m
[1m[35mReferentValue Load (0.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:07:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 36ms (ActiveRecord: 3.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:07:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4701352e05511a4313cec2568cf54c67' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:07:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4701352e05511a4313cec2568cf54c67', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 16:07:32')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:07:32', '2016-08-23 16:07:32')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 40ms (ActiveRecord: 3.2ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8ca49ed80e5a198ec67412ceda23caf' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[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, 26, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2016-08-23 16:07:32')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.7ms)[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', 'a8ca49ed80e5a198ec67412ceda23caf', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, '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', '2016-08-23 16:07:32')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '355a4ea521bc7efbab838bcaf49162f0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:07:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[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, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[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, '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2016-08-23 16:07:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2016-08-23 16:07:32')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '355a4ea521bc7efbab838bcaf49162f0', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 16:07:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:07:32', '2016-08-23 16:07:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1[0m
[1m[35mRequest Load (2.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cac0852fdc47950c677f35488ecf6c9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 28, '2016-08-23 16:07:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 28, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[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, 28, '2016-08-23 16:07:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 28, '2016-08-23 16:07:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 28, '2016-08-23 16:07:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8cac0852fdc47950c677f35488ecf6c9', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, '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', '2016-08-23 16:07:32')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:07:32', '2016-08-23 16:07:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.0ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (10.3ms)[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 (16.1ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (12.5ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (11.9ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.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 (13.2ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.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 (12.3ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.2ms)[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 (11.8ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (38.1ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.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 (12.7ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.9ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.8ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (16.8ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (13.8ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.6ms)[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 (11.1ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.4ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (13.8ms)[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 (12.4ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.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 (9.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (10.9ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (14.3ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (8.9ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (32.0ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (8.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
-----------------------------------------------------------------
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 15ms (Views: 6.1ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 21ms (Views: 0.2ms | ActiveRecord: 1.7ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4437bf95b6ac111831f431248888045e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:07:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 16:07:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4437bf95b6ac111831f431248888045e', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 16:07:59')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 1
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 1\n', 1, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Redirected to http://test.host/resolve?umlaut.request_id=1&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A07%3A59-04%3A00&ctx_id=&ctx_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 22ms (ActiveRecord: 2.8ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '22d9b92a7c168773dc820deb106f60be' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:07:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 16:07:59')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '22d9b92a7c168773dc820deb106f60be', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 16:07:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A07%3A59-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.1ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45e567b86adddccd0ce3ce68e6ef8228' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:07:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:07:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '45e567b86adddccd0ce3ce68e6ef8228', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:07:59')
[1m[36m (6.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:59')[0m
[1m[35m (6.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.3ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 16:07:59', '2016-08-23 16:07:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A07%3A59-04%3A00&ctx_id=&ctx_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 30ms (ActiveRecord: 9.9ms)
[1m[35mDispatchedService Load (5.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:07:59' WHERE `dispatched_services`.`id` = 1
[1m[36m (11.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba200910d789bcb9031c7f495b987d3c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:07:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:07:59')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ba200910d789bcb9031c7f495b987d3c', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:07:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:59')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 16:07:59', '2016-08-23 16:07:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://example.org
Completed 302 Found in 18ms (ActiveRecord: 4.6ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c907ff199c2e464cfeed87bd96fc2cc6' 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 (0.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 (1.8ms)[0m BEGIN
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:07:59' WHERE `dispatched_services`.`id` = 2[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:07:59')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:07:59')
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'c907ff199c2e464cfeed87bd96fc2cc6', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:07:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:59')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 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` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 9ms (ActiveRecord: 3.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '479affa1ae73541579fbadcafe78eed7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:07:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:07:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '479affa1ae73541579fbadcafe78eed7', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:07:59')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:59')
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:08:00', '2016-08-23 16:08:00')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:00')[0m
[1m[35m (6.2ms)[0m COMMIT
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 28ms (Views: 0.4ms | ActiveRecord: 14.6ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b52212cab9a615a7f4ee0c79dffd4d0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:08:00')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:08:00')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5b52212cab9a615a7f4ee0c79dffd4d0', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:08:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Redirected to http://test.host/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=2016-08-23T12%3A08%3A00-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.3ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1943571b4cfb981b8307b6e7ae275a8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:08:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 8, '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 8, '2016-08-23 16:08:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e1943571b4cfb981b8307b6e7ae275a8', 'e7e9149c1fdfcd3be6736b651a0064bb', 8, '0.0.0.0', '2016-08-23 16:08:00')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (8, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:08:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:08:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:08:00', '2016-08-23 16:08:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:00 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21438df2e6f641d66db888e6279b9fd2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:08:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:08:00')[0m
[1m[35m (11.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '21438df2e6f641d66db888e6279b9fd2', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:08:00')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 9, '2016-08-23 16:08:00', '2016-08-23 16:08:00')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.3s connecting to BorrowDirect server at https://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:08:00' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.9ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (69.3ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 627ms (Views: 265.8ms | ActiveRecord: 18.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:08:00 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc5580023a2f5442d8d1c47795de1771' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:08:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 16:08:00')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 10, '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 10, '2016-08-23 16:08:00')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'dc5580023a2f5442d8d1c47795de1771', 'a03fb1fb17f24f5ea845bf6c4450490b', 10, '127.0.0.1', '2016-08-23 16:08:00')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:08:00', '2016-08-23 16:08:00')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22some+book%22', '2016-08-23 16:08:00')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:00' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (15.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (16.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (16.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (31.4ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (21.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 88ms (Views: 34.5ms | ActiveRecord: 24.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 2016-08-23 12:08:00 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a247a24b1e833fbb62c133974a39ee7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:08:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 11, '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 16:08:00')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 11, '2016-08-23 16:08:00')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '4a247a24b1e833fbb62c133974a39ee7', 'bc13b80c2923ce2cbe0c8347141587a7', 11, '127.0.0.1', '2016-08-23 16:08:00')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 16:08:00', '2016-08-23 16:08:00')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)
[1m[36mDispatchedService Load (0.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 (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:00' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.2ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 49ms (Views: 15.2ms | ActiveRecord: 5.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c1e7cd1cad50d2404b45df212669210' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:08:00')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 12, '2016-08-23 16:08:00')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8c1e7cd1cad50d2404b45df212669210', '318e542032e1812e600e07efbdb1dfcc', 12, '0.0.0.0', '2016-08-23 16:08:00')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 12, '2016-08-23 16:08:00', '2016-08-23 16:08:00')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=12" for 127.0.0.1 at 2016-08-23 12:08:00 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"12"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (1.1ms)[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.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.1ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (28.4ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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 42ms (Views: 30.5ms | ActiveRecord: 5.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:00 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49aaa431ef2731ef701ea8a2e491b3b0' 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.2ms)[0m BEGIN
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:00')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:08:00')
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:08:00')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '49aaa431ef2731ef701ea8a2e491b3b0', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:08:00')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:08:00', '2016-08-23 16:08:00')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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 (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:00')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 13, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[36mDispatchedService Load (1.4ms)[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 (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.1ms)
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (25.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 99ms (Views: 24.0ms | ActiveRecord: 11.1ms)
Started GET "/borrow_direct/BorrowDirect/13?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:08:01 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A08%3A01-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 2.1ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (11.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19
[1m[36m (6.1ms)[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=2016-08-23T12%3A08%3A01-04%3A00&ctx_id=&ctx_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 2016-08-23 12:08:01 -0400
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"=>"2016-08-23T12:08:01-04: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.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 29ms (Views: 16.5ms | ActiveRecord: 5.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:08:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c98690e8cf67f644e9eb22216797aecb' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2016-08-23 16:08:01')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'c98690e8cf67f644e9eb22216797aecb', '9902a1d22a141a826ae31b1c83cb928c', 14, '127.0.0.1', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:08:01', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 14, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:08:01')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mReferent Load (4.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (7.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 65ms (Views: 15.3ms | ActiveRecord: 10.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa94c0ad7ef2c7ea86cd7dd1220f0e76' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:08:01')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fa94c0ad7ef2c7ea86cd7dd1220f0e76', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:08:01', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 15, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.2ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 56ms (Views: 15.0ms | ActiveRecord: 5.9ms)
Started GET "/borrow_direct/BorrowDirect/15?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:08:01 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `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[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A08%3A01-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 2.6ms)
[1m[35mDispatchedService Load (0.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[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000416\n' WHERE `service_responses`.`id` = 24[0m
[1m[35m (11.7ms)[0m COMMIT
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=2016-08-23T12%3A08%3A01-04%3A00&ctx_id=&ctx_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 2016-08-23 12:08:01 -0400
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"=>"2016-08-23T12:08:01-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.4ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 23ms (Views: 13.2ms | ActiveRecord: 3.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd897789b761d6633bb1e3b4e4d1a824c' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd897789b761d6633bb1e3b4e4d1a824c', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.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[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 16, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 58ms (Views: 15.0ms | ActiveRecord: 5.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c310cf5935b64e0033015d52a5aad830' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:08:01')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c310cf5935b64e0033015d52a5aad830', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:08:01')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:08:01', '2016-08-23 16:08:01')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 17, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:01')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (3.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (6.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 58ms (Views: 14.8ms | ActiveRecord: 10.7ms)
Started GET "/borrow_direct/BorrowDirect/17" for 127.0.0.1 at 2016-08-23 12:08:01 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:01')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Redirected to http://www.example.com/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=2016-08-23T12%3A08%3A01-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.4ms)
Started GET "/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=2016-08-23T12%3A08%3A01-04%3A00&ctx_id=&ctx_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 2016-08-23 12:08:01 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"17", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:08:01-04: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.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mReferent Load (0.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.5ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 23ms (Views: 14.1ms | ActiveRecord: 3.9ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44431d1314b6e9b9955666d69bfb3a5d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:08:01')
[1m[36mSQL (0.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, 18, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 18, '2016-08-23 16:08:01')
[1m[36m (12.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '44431d1314b6e9b9955666d69bfb3a5d', '62590701c6f35b45309577ef8c8c22b4', 18, '0.0.0.0', '2016-08-23 16:08:01')[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, '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', '2016-08-23 16:08:01')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '36b14f95d4cb23b23deeb7752df2c3ae' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 19, '2016-08-23 16:08:01')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 19, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 19, '2016-08-23 16:08:01')
[1m[36mSQL (0.2ms)[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, 19, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 19, '2016-08-23 16:08:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 19, '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '36b14f95d4cb23b23deeb7752df2c3ae', 'd95884a882a64501650fb8f9deae5104', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, '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', '2016-08-23 16:08:01')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3adcfad4a1355943a32ed60352ae312' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 20, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 20, '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 20, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 20, '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 20, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 20, '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 20, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 20, '2016-08-23 16:08:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 20, '2016-08-23 16:08:01')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e3adcfad4a1355943a32ed60352ae312', '06d451b80bf9fe3ce6849a48c98522d7', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 16:08:01')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 20 LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ced0f2d3386d9808d4f2f3c313e9abbb' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 16:08:01')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 16:08:01')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ced0f2d3386d9808d4f2f3c313e9abbb', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 21, 'test_holding', 'holding', '2016-08-23 16:08:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '79b2b2a5529aa311a4d299767c008ec2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 22, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 22, '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '79b2b2a5529aa311a4d299767c008ec2', 'e7e9149c1fdfcd3be6736b651a0064bb', 22, '0.0.0.0', '2016-08-23 16:08:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', 22, 'test_holding', 'holding', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62ff91a5ba5b4fb5a50fb5ea459147c8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:08:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 23, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 23, '2016-08-23 16:08:01')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '62ff91a5ba5b4fb5a50fb5ea459147c8', 'e7e9149c1fdfcd3be6736b651a0064bb', 23, '0.0.0.0', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'test_holding', 'holding', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '209c196b74726d90fd4eb1ed41a42f9c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:08:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '209c196b74726d90fd4eb1ed41a42f9c', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 24, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 19[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6964c85994ba59c326e68bb7f758212e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:08:01')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6964c85994ba59c326e68bb7f758212e', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:01')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 25, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:01')
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3a372d74e3081c16c7c36de095c500f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:08:01')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 26, '2016-08-23 16:08:01')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c3a372d74e3081c16c7c36de095c500f', '9902a1d22a141a826ae31b1c83cb928c', 26, '0.0.0.0', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:08:01', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1d883079f6cd48b13c1d1d85fa69d64' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:08:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 27, '2016-08-23 16:08:01')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a1d883079f6cd48b13c1d1d85fa69d64', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 27, '0.0.0.0', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:01')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (2.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '125e968a2d9ef751947836d64cfd2b79' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:08:01')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:08:01')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '125e968a2d9ef751947836d64cfd2b79', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:08:01', '2016-08-23 16:08:01')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (16.2ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (9.4ms)[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 (18.1ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.9ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (13.5ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (8.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 (10.7ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (14.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 (12.3ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (8.7ms)[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 (11.0ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (36.5ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (10.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 (11.8ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.2ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (13.4ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (11.9ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (13.3ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.3ms)[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 (11.0ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (8.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 (12.1ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (35.8ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (10.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 (10.4ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (14.1ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (10.1ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.2ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (10.4ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '173ece5eef42dbe502ea03a2b91ce112' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:08:53')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '173ece5eef42dbe502ea03a2b91ce112', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:08:53')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 1, 'test_holding', 'holding', '2016-08-23 16:08:53')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:08:53', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8b3498ab06cb5f102af8dd54f3274da' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c8b3498ab06cb5f102af8dd54f3274da', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, 'test_holding', 'holding', '2016-08-23 16:08:53')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:08:53', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76d31c6649791754b0e75f5478291e13' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '76d31c6649791754b0e75f5478291e13', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2016-08-23 16:08:53')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 3, 'test_holding', 'holding', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.9ms)[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', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:08:53', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '307b3b04203a39b4ab33a651269a1e4c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '307b3b04203a39b4ab33a651269a1e4c', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:08:53', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d4bd45a4124527acb6daada2211c711' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 5, '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9d4bd45a4124527acb6daada2211c711', '9902a1d22a141a826ae31b1c83cb928c', 5, '0.0.0.0', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:08:53', '2016-08-23 16:08:53')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f4727376b7ecdbf373702ceb35b40a9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2016-08-23 16:08:53')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3f4727376b7ecdbf373702ceb35b40a9', '1f2487b5ab29a0f58587335258d7f8e0', 6, '0.0.0.0', '2016-08-23 16:08:53')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 6, '2016-08-23 16:08:53', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 16:08:53' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '914c3a30f7a489dca54ebd4cafe5ec57' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 7, '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '914c3a30f7a489dca54ebd4cafe5ec57', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 7, '0.0.0.0', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:08:53')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2016-08-23 16:08:53', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b226e0e8af0a089d06e1fb6ea2c0d01' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:08:53')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5b226e0e8af0a089d06e1fb6ea2c0d01', '1f2487b5ab29a0f58587335258d7f8e0', 8, '0.0.0.0', '2016-08-23 16:08:53')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 8, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:08:53', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '722c61c928716de0bdf8e6796fa8f895' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[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, 9, '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 9, '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '722c61c928716de0bdf8e6796fa8f895', '62590701c6f35b45309577ef8c8c22b4', 9, '0.0.0.0', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 9, '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', '2016-08-23 16:08:53')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e4b3c4459a93a669b0d481ec05a240d4' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 10, '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 10, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[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, 10, '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 10, '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e4b3c4459a93a669b0d481ec05a240d4', 'd95884a882a64501650fb8f9deae5104', 10, 'info:sid/google', '0.0.0.0', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:08:53', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9ef95eee7d8424d5a7e655e26c3eff5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 11, '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 11, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[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, '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[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, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 11, '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 11, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 11, '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 11, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 11, '2016-08-23 16:08:53')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e9ef95eee7d8424d5a7e655e26c3eff5', '06d451b80bf9fe3ce6849a48c98522d7', 11, 'info:sid/google', '0.0.0.0', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:08:53', '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 11 LIMIT 1
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:53 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4e278d84a834cbb4cb54cad59aacfd7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:08:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:08:53')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a4e278d84a834cbb4cb54cad59aacfd7', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 12, '2016-08-23 16:08:53', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.6ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:08:53' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (2.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (4.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (66.2ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (9.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 352ms (Views: 252.5ms | ActiveRecord: 7.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:08:53 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9926c9b6281680563832746ede52775' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 13, '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 13, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 13, '2016-08-23 16:08:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f9926c9b6281680563832746ede52775', 'a03fb1fb17f24f5ea845bf6c4450490b', 13, '127.0.0.1', '2016-08-23 16:08:53')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:08:53', '2016-08-23 16:08:53')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, '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', '2016-08-23 16:08:53')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:53' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.9ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 49ms (Views: 14.6ms | ActiveRecord: 6.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 2016-08-23 12:08:53 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2dc206de583600724fd80c0c92ffefe1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 14, '2016-08-23 16:08:53')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 14, '2016-08-23 16:08:53')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 14, '2016-08-23 16:08:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2dc206de583600724fd80c0c92ffefe1', 'bc13b80c2923ce2cbe0c8347141587a7', 14, '127.0.0.1', '2016-08-23 16:08:53')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:08:53', '2016-08-23 16:08:53')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (0.3ms)[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[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:53' WHERE `dispatched_services`.`id` = 13[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 42ms (Views: 12.8ms | ActiveRecord: 5.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'faf0d16a23ed492d6677b8d06752bd03' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 15, '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 15, '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 15, '2016-08-23 16:08:54')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'faf0d16a23ed492d6677b8d06752bd03', '318e542032e1812e600e07efbdb1dfcc', 15, '0.0.0.0', '2016-08-23 16:08:54')[0m
[1m[35m (5.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 15, '2016-08-23 16:08:54', '2016-08-23 16:08:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=15" for 127.0.0.1 at 2016-08-23 12:08:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"15"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (16.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (17.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (30.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 43ms (Views: 32.4ms | ActiveRecord: 3.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a14ee148f6ac145809fb5b65abea88ac' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a14ee148f6ac145809fb5b65abea88ac', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:08:54')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:08:54', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.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[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 16, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (21.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 68ms (Views: 21.3ms | ActiveRecord: 7.5ms)
Started GET "/borrow_direct/BorrowDirect/16?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:08:54 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 15
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Redirected to http://www.example.com/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=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 2.2ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.3ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 20
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Started GET "/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=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 2016-08-23 12:08:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"16", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:08:54-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mReferent Load (2.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.9ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (23.2ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.5ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 45ms (Views: 25.2ms | ActiveRecord: 6.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:08:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f08fdaea0a5b1070d730a2d6f81e6f5c' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 17, '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'f08fdaea0a5b1070d730a2d6f81e6f5c', '9902a1d22a141a826ae31b1c83cb928c', 17, '127.0.0.1', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:08:54', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:08:54')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 16
[1m[36m (5.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (4.9ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (24.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 99ms (Views: 27.4ms | ActiveRecord: 7.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6517c8f3382fb63e841d4da25006cfac' 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.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 16:08:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '6517c8f3382fb63e841d4da25006cfac', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2016-08-23 16:08:54')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:08:54', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mReferent Load (0.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 18, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.6ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 71ms (Views: 18.6ms | ActiveRecord: 6.8ms)
Started GET "/borrow_direct/BorrowDirect/18?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:08:54 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Redirected to http://www.example.com/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=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 11ms (ActiveRecord: 2.3ms)
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000416\n' WHERE `service_responses`.`id` = 25[0m
[1m[35m (0.3ms)[0m COMMIT
Started GET "/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=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 2016-08-23 12:08:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"18", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:08:54-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 27ms (Views: 17.5ms | ActiveRecord: 3.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34588ca76947cfa121c393b8dfbc3766' 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 (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:08:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:08:54')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '34588ca76947cfa121c393b8dfbc3766', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:08:54')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:08:54', '2016-08-23 16:08:54')
[1m[36m (7.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 18 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 19, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 18[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 77ms (Views: 14.0ms | ActiveRecord: 19.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:08:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b4c136d062f8853dfcb629f0683a2f9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9b4c136d062f8853dfcb629f0683a2f9', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 16:08:54', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:08:54')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 20, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 19[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.8ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 60ms (Views: 21.0ms | ActiveRecord: 6.1ms)
Started GET "/borrow_direct/BorrowDirect/20" for 127.0.0.1 at 2016-08-23 12:08:54 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:08:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Redirected to http://www.example.com/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=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
Started GET "/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=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 2016-08-23 12:08:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"20", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:08:54-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 24ms (Views: 16.2ms | ActiveRecord: 3.1ms)
-----------------------------------------------------------------
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 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f538da01fd9c2c1097e8a9e0f1696c6c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f538da01fd9c2c1097e8a9e0f1696c6c', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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: No existing bd_request_prompt response found for request 21\n', 21, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.2ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '202f3f5c9e29f7d1b715f44d6483f319' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '202f3f5c9e29f7d1b715f44d6483f319', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:08:54')
[1m[36m (11.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 32
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 32\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')[0m
[1m[35m (5.1ms)[0m COMMIT
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 6.6ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d928e28c263f7d282234b928de305b5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:08:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:08:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2d928e28c263f7d282234b928de305b5', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 23, '2016-08-23 16:08:54', '2016-08-23 16:08:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 2.5ms)
[1m[35mDispatchedService Load (6.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mServiceResponse Load (0.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 20
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 35[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3d8ba241e2acb583d58d0680e356e2e2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:08:54')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3d8ba241e2acb583d58d0680e356e2e2', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 16:08:54', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:08:54')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
Redirected to http://example.org
Completed 302 Found in 15ms (ActiveRecord: 2.8ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c70664a46f9b9873937a40367b48e76' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0c70664a46f9b9873937a40367b48e76', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4911b76224f55f5a701bb2e9c2b29ca3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4911b76224f55f5a701bb2e9c2b29ca3', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 16:08:54')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 26, '2016-08-23 16:08:54', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 2.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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3caa12216405b3f08f36c583475859fe' 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 (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (13.6ms)[0m BEGIN
[1m[36m (9.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54')
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 22[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:08:54')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 16:08:54')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.5ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 41[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '3caa12216405b3f08f36c583475859fe', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"27"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)
Redirected to http://test.host/resolve?umlaut.request_id=27&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A08%3A54-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '56ee48c12f4f2f867f5774c21f0beef3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:08:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:08:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:08:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '56ee48c12f4f2f867f5774c21f0beef3', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (28, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:08:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:08:54', '2016-08-23 16:08:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (16.3ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (33.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 (17.5ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (20.0ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (17.7ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (10.8ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.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 (12.6ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (11.4ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.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 (12.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (31.4ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (11.5ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (10.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 (11.0ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.6ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (18.4ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.0ms)[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 (10.7ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.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 (11.1ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (8.5ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (9.6ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (10.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.6ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1cf977361fdd37a62756a2ceda22bf7c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:10:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:10:21')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1cf977361fdd37a62756a2ceda22bf7c', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 16:10:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:10:22')
[1m[36m (11.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:10:22', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d29de6389fa8e36f4bff78e10fc376d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:10:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 2, '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2d29de6389fa8e36f4bff78e10fc376d', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 2, '0.0.0.0', '2016-08-23 16:10:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:10:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:10:22', '2016-08-23 16:10:22')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a56d0c911a312337f7e59095fedb02ba' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:10:22')
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 3, '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a56d0c911a312337f7e59095fedb02ba', '9902a1d22a141a826ae31b1c83cb928c', 3, '0.0.0.0', '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:10:22', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '03fe1d838c7d6bd5f91e8587aa73b021' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:10:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '03fe1d838c7d6bd5f91e8587aa73b021', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 4, '2016-08-23 16:10:22', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30d253ee36206b8a85c8e08190dafe57' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '30d253ee36206b8a85c8e08190dafe57', '1f2487b5ab29a0f58587335258d7f8e0', 5, '0.0.0.0', '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:10:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 5, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:10:22', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a5bf5da3a5f6c04b7f2b7f907220bd4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:10:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 6, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 6, '2016-08-23 16:10:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6a5bf5da3a5f6c04b7f2b7f907220bd4', 'e7e9149c1fdfcd3be6736b651a0064bb', 6, '0.0.0.0', '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', 6, 'test_holding', 'holding', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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%22title%22', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 16:10:22', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f74309eac6a0520356ce76ebbc577a11' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:10:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 7, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 7, '2016-08-23 16:10:22')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f74309eac6a0520356ce76ebbc577a11', 'e7e9149c1fdfcd3be6736b651a0064bb', 7, '0.0.0.0', '2016-08-23 16:10:22')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'test_holding', 'holding', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2016-08-23 16:10:22', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96f1f7e0ec9bb2b42ec3738f762e4f76' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:10:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 8, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 8, '2016-08-23 16:10:22')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '96f1f7e0ec9bb2b42ec3738f762e4f76', 'e7e9149c1fdfcd3be6736b651a0064bb', 8, '0.0.0.0', '2016-08-23 16:10:22')[0m
[1m[35m (6.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 8, 'test_holding', 'holding', '2016-08-23 16:10:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:10:22', '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:10:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64efd5b949912d398ac7e3e66c290f00' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:10:22')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '64efd5b949912d398ac7e3e66c290f00', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:10:22')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 9, '2016-08-23 16:10:22', '2016-08-23 16:10:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[36mDispatchedService Load (3.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mReferent Load (1.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (4.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (8.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (5.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (63.9ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (9.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 329ms (Views: 255.2ms | ActiveRecord: 12.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:10:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be40a49d3770df10a2f591357f71f67c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:10:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 10, '2016-08-23 16:10:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 10, '2016-08-23 16:10:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'be40a49d3770df10a2f591357f71f67c', 'a03fb1fb17f24f5ea845bf6c4450490b', 10, '127.0.0.1', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:10:22', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)
[1m[36mDispatchedService Load (0.2ms)[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 (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, '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', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 48ms (Views: 13.8ms | ActiveRecord: 6.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 2016-08-23 12:10:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0216abfbc07e582d31ce18327b6f975d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:10:22')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 11, '2016-08-23 16:10:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 11, '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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?genre=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '0216abfbc07e582d31ce18327b6f975d', 'bc13b80c2923ce2cbe0c8347141587a7', 11, '127.0.0.1', '2016-08-23 16:10:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 16:10:22', '2016-08-23 16:10:22')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
[1m[35mServiceResponse Load (0.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mReferent Load (0.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (10.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 40ms (Views: 11.8ms | ActiveRecord: 5.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '658bf71d4a7cabad4673ab99d938ed97' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:10:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2016-08-23 16:10:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 12, '2016-08-23 16:10:22')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '658bf71d4a7cabad4673ab99d938ed97', '318e542032e1812e600e07efbdb1dfcc', 12, '0.0.0.0', '2016-08-23 16:10:22')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 12, '2016-08-23 16:10:22', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=12" for 127.0.0.1 at 2016-08-23 12:10:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"12"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.0ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 22ms (Views: 13.7ms | ActiveRecord: 3.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:10:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2fe5ec49f40f20ccc622d281c933962c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2fe5ec49f40f20ccc622d281c933962c', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:10:22', '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:10:22')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 13, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 [["id", 13]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 58ms (Views: 17.4ms | ActiveRecord: 5.9ms)
Started GET "/borrow_direct/BorrowDirect/13?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:10:22 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 13[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
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=2016-08-23T12%3A10%3A22-04%3A00&ctx_id=&ctx_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: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 13ms (ActiveRecord: 2.3ms)
[1m[35mDispatchedService Load (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18[0m
[1m[35m (0.4ms)[0m COMMIT
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=2016-08-23T12%3A10%3A22-04%3A00&ctx_id=&ctx_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 2016-08-23 12:10:22 -0400
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"=>"2016-08-23T12:10:22-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 24ms (Views: 14.9ms | ActiveRecord: 4.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:10:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '139647587a1edecc768f960265493093' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:10:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:10:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2016-08-23 16:10:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '139647587a1edecc768f960265493093', '9902a1d22a141a826ae31b1c83cb928c', 14, '127.0.0.1', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:10:22', '2016-08-23 16:10:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:10:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:10:22')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 14[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.7ms)[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.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 63ms (Views: 14.0ms | ActiveRecord: 5.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:10:23 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbd6499c3795eb7e51f327eb1ee4859c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:10:23')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:10:23')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'dbd6499c3795eb7e51f327eb1ee4859c', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:10:23')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:10:23', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 15, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m [["id", 15]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.0ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 57ms (Views: 14.0ms | ActiveRecord: 6.4ms)
Started GET "/borrow_direct/BorrowDirect/15?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:10:23 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 15
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
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=2016-08-23T12%3A10%3A23-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 2.9ms)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000416\n' WHERE `service_responses`.`id` = 23
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
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=2016-08-23T12%3A10%3A23-04%3A00&ctx_id=&ctx_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 2016-08-23 12:10:23 -0400
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"=>"2016-08-23T12:10:23-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 21ms (Views: 13.0ms | ActiveRecord: 2.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:10:23 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '147c4cebe694b7422b98f8614f62a312' 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.2ms)[0m BEGIN
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:10:23')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:10:23')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '147c4cebe694b7422b98f8614f62a312', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:10:23', '2016-08-23 16:10:23')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 16, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:23')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 16[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 [["id", 16]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.1ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 63ms (Views: 18.2ms | ActiveRecord: 7.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:10:23 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '13acd81a250ec329d8b6ae7660bb577e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:10:23')[0m
[1m[35m (4.9ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '13acd81a250ec329d8b6ae7660bb577e', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:10:23')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:10:23', '2016-08-23 16:10:23')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:10:23')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 17, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m [["id", 17]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.8ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 64ms (Views: 14.8ms | ActiveRecord: 10.1ms)
Started GET "/borrow_direct/BorrowDirect/17" for 127.0.0.1 at 2016-08-23 12:10:23 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Redirected to http://www.example.com/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=2016-08-23T12%3A10%3A23-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.8ms)
Started GET "/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=2016-08-23T12%3A10%3A23-04%3A00&ctx_id=&ctx_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 2016-08-23 12:10:23 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"17", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:10:23-04: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.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m [["id", 17]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 28ms (Views: 16.4ms | ActiveRecord: 5.0ms)
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ce99ad043543666afff13aefdeae56a0' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:10:23')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 18, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 18, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[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, 18, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 18, '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ce99ad043543666afff13aefdeae56a0', 'd95884a882a64501650fb8f9deae5104', 18, 'info:sid/google', '0.0.0.0', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 16:10:23')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:10:23', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9ae385b50d2d3e3062ca7d8d49ea593' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[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, 19, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 19, '2016-08-23 16:10:23')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e9ae385b50d2d3e3062ca7d8d49ea593', '62590701c6f35b45309577ef8c8c22b4', 19, '0.0.0.0', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 19, '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', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '834238b829f6bf38c7b3f7dbf3281ca4' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 20, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 20, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 20, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 20, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 20, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 20, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 20, '2016-08-23 16:10:23')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 20, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 20, '2016-08-23 16:10:23')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '834238b829f6bf38c7b3f7dbf3281ca4', '06d451b80bf9fe3ce6849a48c98522d7', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:10:23', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 20 LIMIT 1
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4822a646d026d6761fcd52a8e66e7cb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b4822a646d026d6761fcd52a8e66e7cb', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (21, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:10:23', '2016-08-23 16:10:23')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 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 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7335ef579f23c97e5707c8ce66f455c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f7335ef579f23c97e5707c8ce66f455c', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 22
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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: No existing bd_request_prompt response found for request 22\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A10%3A23-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '934a33fc6c464588c1a556795b5ad301' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '934a33fc6c464588c1a556795b5ad301', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:10:23')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 34
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 34\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
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=2016-08-23T12%3A10%3A23-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84f5f53b9047c66c7eed652a650273fc' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:10:23')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '84f5f53b9047c66c7eed652a650273fc', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:10:23')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:10:23')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 16:10:23', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
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=2016-08-23T12%3A10%3A23-04%3A00&ctx_id=&ctx_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"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 15ms (ActiveRecord: 2.0ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mDispatchedService Load (0.6ms)[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[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 21
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fd816d77132270e965029b5f4d359851' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 16:10:23')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fd816d77132270e965029b5f4d359851', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 16:10:23')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:10:23')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 16:10:23', '2016-08-23 16:10:23')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:23')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.4ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '561000826d307f93840d0c1ffc5fdf9a' 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 (0.3ms)[0m [1mSELECT `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[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 22[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:10:23')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 16:10:23')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 39[0m
[1m[35m (21.9ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '561000826d307f93840d0c1ffc5fdf9a', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:23')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc0e68a9512881d3d85f47b5a8cd1e1d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fc0e68a9512881d3d85f47b5a8cd1e1d', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:10:23')
[1m[36m (0.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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 16:10:23', '2016-08-23 16:10:23')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:23')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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 18ms (Views: 0.3ms | ActiveRecord: 2.7ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab3140737e357e64adbdfaa56982190a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:10:23')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ab3140737e357e64adbdfaa56982190a', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 16:10:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)
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=2016-08-23T12%3A10%3A23-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.1ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (16.7ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (32.2ms)[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 (15.5ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (16.4ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (19.1ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.9ms)[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 (11.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.9ms)[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 (16.0ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (8.6ms)[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 (10.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.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 (10.7ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.6ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (32.5ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.9ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.4ms)[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 (10.7ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (10.0ms)[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 (13.0ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.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 (9.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (10.8ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (14.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.9ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (29.9ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.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 2016-08-23 12:10:56 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8321d1e95b39638fa4306f1871334f9b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:56')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:10:56')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:10:56')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8321d1e95b39638fa4306f1871334f9b', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 16:10:56')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 16:10:56', '2016-08-23 16:10:56')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (0.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 (0.5ms)[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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:10:56')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:10:56' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[35mDispatchedService Load (3.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mReferent Load (1.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (58.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 393ms (Views: 255.4ms | ActiveRecord: 16.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df2ab6362a0fdc4b5881c7218fcbe7cf' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'df2ab6362a0fdc4b5881c7218fcbe7cf', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 16:10:57', '2016-08-23 16:10:57')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 53ms (Views: 17.1ms | ActiveRecord: 7.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 2016-08-23 12:10:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c20e3e7c71322e9f15cb60cab9d0079b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 16:10:57')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c20e3e7c71322e9f15cb60cab9d0079b', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 16:10:57')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 16:10:57', '2016-08-23 16:10:57')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 78ms (Views: 19.4ms | ActiveRecord: 17.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99d527d1a208ee98e5769b0aa4acad3e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 16:10:57')
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 16:10:57')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '99d527d1a208ee98e5769b0aa4acad3e', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 16:10:57')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 16:10:57', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.8ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 34ms (Views: 22.0ms | ActiveRecord: 4.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80316a55ace49352b10b0347a239a029' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '80316a55ace49352b10b0347a239a029', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 16:10:57', '2016-08-23 16:10:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:57')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.1ms)
[1m[36mServiceResponse Load (0.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 85ms (Views: 22.7ms | ActiveRecord: 7.2ms)
Started GET "/borrow_direct/BorrowDirect/5?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (5.6ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
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=2016-08-23T12%3A10%3A57-04%3A00&ctx_id=&ctx_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 20ms (ActiveRecord: 8.3ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
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=2016-08-23T12%3A10%3A57-04%3A00&ctx_id=&ctx_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 2016-08-23 12:10:57 -0400
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"=>"2016-08-23T12:10:57-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 25ms (Views: 16.5ms | ActiveRecord: 2.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '61de7b303c4998d68ab7b508a1f41588' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 16:10:57')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', '61de7b303c4998d68ab7b508a1f41588', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 16:10:57', '2016-08-23 16:10:57')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:10:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:10:57')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 55ms (Views: 13.6ms | ActiveRecord: 6.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c31ac89ee06924a4cd686ad3241341b' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '2c31ac89ee06924a4cd686ad3241341b', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 16:10:57', '2016-08-23 16:10:57')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.6ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 55ms (Views: 14.2ms | ActiveRecord: 6.2ms)
Started GET "/borrow_direct/BorrowDirect/7?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
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=2016-08-23T12%3A10%3A57-04%3A00&ctx_id=&ctx_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 25ms (ActiveRecord: 9.1ms)
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 7
[1m[36m (5.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000416\n' WHERE `service_responses`.`id` = 10[0m
[1m[35m (0.3ms)[0m COMMIT
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=2016-08-23T12%3A10%3A57-04%3A00&ctx_id=&ctx_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 2016-08-23 12:10:57 -0400
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"=>"2016-08-23T12:10:57-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 23ms (Views: 13.1ms | ActiveRecord: 3.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b9c939690bc207ff2915d87113b87176' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:10:57')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b9c939690bc207ff2915d87113b87176', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:10:57', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m [["id", 8]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.9ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 55ms (Views: 14.4ms | ActiveRecord: 7.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8623746c4e2a4d96a1acf8bff73fd71e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8623746c4e2a4d96a1acf8bff73fd71e', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:10:57', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:57')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 53ms (Views: 13.7ms | ActiveRecord: 5.5ms)
Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2016-08-23 12:10:57 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[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=2016-08-23T12%3A10%3A57-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.7ms)
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=2016-08-23T12%3A10%3A57-04%3A00&ctx_id=&ctx_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 2016-08-23 12:10:57 -0400
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"=>"2016-08-23T12:10:57-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 22ms (Views: 13.3ms | ActiveRecord: 3.3ms)
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c450acf5e6eb2a203838429a3737e62f' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[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, 10, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 10, '2016-08-23 16:10:57')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'c450acf5e6eb2a203838429a3737e62f', '62590701c6f35b45309577ef8c8c22b4', 10, '0.0.0.0', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, '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', '2016-08-23 16:10:57')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd150789ce511543022983d8709f729f0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 11, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 11, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 11, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 11, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 11, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 11, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 11, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 11, '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 11, '2016-08-23 16:10:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd150789ce511543022983d8709f729f0', '06d451b80bf9fe3ce6849a48c98522d7', 11, 'info:sid/google', '0.0.0.0', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:10:57', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 11 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e03e51196003b93b88f9f7966bcc86d3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 12, '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 12, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[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, 12, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 12, '2016-08-23 16:10:57')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e03e51196003b93b88f9f7966bcc86d3', 'd95884a882a64501650fb8f9deae5104', 12, 'info:sid/google', '0.0.0.0', '2016-08-23 16:10:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 12, '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', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:10:57', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ba681b67150bac8b1077c42cfb1d063' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:10:57')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8ba681b67150bac8b1077c42cfb1d063', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:10:57')
[1m[36m (5.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 13
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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: No existing bd_request_prompt response found for request 13\n', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
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=2016-08-23T12%3A10%3A57-04%3A00&ctx_id=&ctx_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 9ms (ActiveRecord: 1.7ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dafe8e6f2ca478872e68ba5ccd5c3e5f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:10:57')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'dafe8e6f2ca478872e68ba5ccd5c3e5f', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"14"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 19
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 19\n', 14, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Redirected to http://test.host/resolve?umlaut.request_id=14&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A10%3A57-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7fdd6e4c3e7b7fac231ce48975a75986' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7fdd6e4c3e7b7fac231ce48975a75986', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 15, '2016-08-23 16:10:57', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
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=2016-08-23T12%3A10%3A57-04%3A00&ctx_id=&ctx_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"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 16ms (ActiveRecord: 2.4ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mDispatchedService Load (0.6ms)[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[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 22
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd0bcb521f4d6f0364b2dc7270bdd90c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 16:10:57')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'bd0bcb521f4d6f0364b2dc7270bdd90c', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 16, '2016-08-23 16:10:57', '2016-08-23 16:10:57')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.4ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da856ef3e58147d1c25b543fa6e2599c' 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 (0.4ms)[0m SELECT `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
[1m[36m (1.9ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 13
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:10:57')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 16:10:57')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.7ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.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', 'da856ef3e58147d1c25b543fa6e2599c', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '79e28a548c719db9d9f21bab6491ad60' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:10:57')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 16:10:57')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '79e28a548c719db9d9f21bab6491ad60', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 18, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:10:57')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2016-08-23 16:10:57', '2016-08-23 16:10:57')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 2.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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab16530b69dcc58341b9f85494a06ba7' 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 (0.4ms)[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 (2.1ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 14[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:10:57')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 16:10:57')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.5ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'ab16530b69dcc58341b9f85494a06ba7', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 16:10:57')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
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=2016-08-23T12%3A10%3A58-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.2ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72c03fb483487d820e553c462557f652' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:10:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2016-08-23 16:10:58')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '72c03fb483487d820e553c462557f652', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (20, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:10:58')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:10:58')[0m
[1m[35m (6.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:10:58', '2016-08-23 16:10:58')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3856704cc209fd2973c47212386c7090' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:10:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 16:10:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3856704cc209fd2973c47212386c7090', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 16:10:58')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 21, 'test_holding', 'holding', '2016-08-23 16:10:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:10:58', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '630f4355c2352071e4c41a03a767279a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 22, '2016-08-23 16:10:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 22, '2016-08-23 16:10:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '630f4355c2352071e4c41a03a767279a', 'e7e9149c1fdfcd3be6736b651a0064bb', 22, '0.0.0.0', '2016-08-23 16:10:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'test_holding', 'holding', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-23 16:10:58', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bdcbdfa5400bd5bc6a23bacafd79d8bf' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 23, '2016-08-23 16:10:58')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 23, '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'bdcbdfa5400bd5bc6a23bacafd79d8bf', 'e7e9149c1fdfcd3be6736b651a0064bb', 23, '0.0.0.0', '2016-08-23 16:10:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'test_holding', 'holding', '2016-08-23 16:10:58')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 16:10:58', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '46c50849ad2b94e6d3ea981a442c7dfe' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:10:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '46c50849ad2b94e6d3ea981a442c7dfe', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:10:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 16:10:58', '2016-08-23 16:10:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd755acf2e1cab4f5494bb92881587ba9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:10:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2016-08-23 16:10:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd755acf2e1cab4f5494bb92881587ba9', '9902a1d22a141a826ae31b1c83cb928c', 25, '0.0.0.0', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:10:58')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:10:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 16:10:58', '2016-08-23 16:10:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5ebf015fc70ea4a9b897df65ce4a7381' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:10:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5ebf015fc70ea4a9b897df65ce4a7381', '1f2487b5ab29a0f58587335258d7f8e0', 26, '0.0.0.0', '2016-08-23 16:10:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:10:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 26, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:10:58', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a70c0b0b8f9cfdde13ea8341c05a962e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 16:10:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a70c0b0b8f9cfdde13ea8341c05a962e', '1f2487b5ab29a0f58587335258d7f8e0', 27, '0.0.0.0', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:10:58')[0m
[1m[35m (0.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 27, '2016-08-23 16:10:58', '2016-08-23 16:10:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 16:10:58' WHERE `dispatched_services`.`id` = 22
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5eb7b6cf7230ef2a94829ca97827fb61' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:10:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:10:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 28, '2016-08-23 16:10:58')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5eb7b6cf7230ef2a94829ca97827fb61', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 28, '0.0.0.0', '2016-08-23 16:10:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:10:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:10:58')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:10:58', '2016-08-23 16:10:58')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (23.3ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (11.2ms)[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 (15.7ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.8ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (17.0ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (8.9ms)[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 (13.6ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.5ms)[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 (12.3ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.2ms)[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 (10.6ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (14.7ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (26.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 (17.0ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.1ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (11.6ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.9ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.3ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.9ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (11.5ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.1ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.0ms)[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 (10.1ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.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 (9.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 (36.6ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.1ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.3ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (10.7ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (10.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.6ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f3bd137f203dec677f0cd4c3241ee9e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:11:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1f3bd137f203dec677f0cd4c3241ee9e', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:11:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (1, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:11:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:11:09')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:11:09', '2016-08-23 16:11:09')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2720b62ef5c91850c816641ceb02959f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:11:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2016-08-23 16:11:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2720b62ef5c91850c816641ceb02959f', '1f2487b5ab29a0f58587335258d7f8e0', 2, '0.0.0.0', '2016-08-23 16:11:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:11:09')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:11:09', '2016-08-23 16:11:09')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3bcb2800580059ce0e754b53253db049' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 3, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 3, '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[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, 3, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 3, '2016-08-23 16:11:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3bcb2800580059ce0e754b53253db049', 'd95884a882a64501650fb8f9deae5104', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:11:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, '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', '2016-08-23 16:11:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:11:09', '2016-08-23 16:11:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ca61e112c535a42c78c73c710dd0dc7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:11:09')
[1m[36mSQL (0.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, 4, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 4, '2016-08-23 16:11:09')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2ca61e112c535a42c78c73c710dd0dc7', '62590701c6f35b45309577ef8c8c22b4', 4, '0.0.0.0', '2016-08-23 16:11:09')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, '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', '2016-08-23 16:11:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1aae80f5303b9695755a762de806283e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:11:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 5, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 5, '2016-08-23 16:11:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 5, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 5, '2016-08-23 16:11:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 5, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 5, '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 5, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 5, '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 5, '2016-08-23 16:11:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1aae80f5303b9695755a762de806283e', '06d451b80bf9fe3ce6849a48c98522d7', 5, 'info:sid/google', '0.0.0.0', '2016-08-23 16:11:09')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:11:09', '2016-08-23 16:11:09')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 5 LIMIT 1[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:09 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6026736ca1a348a93f0383ba5cbbeb8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2016-08-23 16:11:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd6026736ca1a348a93f0383ba5cbbeb8', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2016-08-23 16:11:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 6, '2016-08-23 16:11:09', '2016-08-23 16:11:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:09')[0m
[1m[35m (0.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:09' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[36mDispatchedService Load (3.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (64.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (7.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 334ms (Views: 274.3ms | ActiveRecord: 6.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:11:09 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe00a89e68ea6cb84660d7a7fd7ae29c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 7, '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 7, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 7, '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 7, '2016-08-23 16:11:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fe00a89e68ea6cb84660d7a7fd7ae29c', 'a03fb1fb17f24f5ea845bf6c4450490b', 7, '127.0.0.1', '2016-08-23 16:11:09')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 16:11:09', '2016-08-23 16:11:09')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (0.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 (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22some+book%22', '2016-08-23 16:11:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:09' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 47ms (Views: 15.0ms | ActiveRecord: 6.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 2016-08-23 12:11:09 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c462edf9e15fe8334f5f991f0339f06' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 8, '2016-08-23 16:11:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 8, '2016-08-23 16:11:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 8, '2016-08-23 16:11:09')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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?genre=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '8c462edf9e15fe8334f5f991f0339f06', 'bc13b80c2923ce2cbe0c8347141587a7', 8, '127.0.0.1', '2016-08-23 16:11:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:11:09', '2016-08-23 16:11:09')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 41ms (Views: 12.2ms | ActiveRecord: 5.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0fda71823fb0bc81d3a4e2671f512d1c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 16:11:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 9, '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0fda71823fb0bc81d3a4e2671f512d1c', '318e542032e1812e600e07efbdb1dfcc', 9, '0.0.0.0', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 9, '2016-08-23 16:11:10', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=9" for 127.0.0.1 at 2016-08-23 12:11:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"9"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.8ms)
[1m[36mPermalink Load (0.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 24ms (Views: 13.8ms | ActiveRecord: 3.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f0eeb8541385bb53d4c9e5e3af0ebef' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-23 16:11:10')
[1m[36m (10.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '4f0eeb8541385bb53d4c9e5e3af0ebef', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:11:10', '2016-08-23 16:11:10')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 10, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 [["id", 10]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (18.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 72ms (Views: 18.4ms | ActiveRecord: 16.6ms)
Started GET "/borrow_direct/BorrowDirect/10?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:11:10 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 22ms (ActiveRecord: 8.3ms)
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 9
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10[0m
[1m[35m (0.3ms)[0m COMMIT
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=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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 2016-08-23 12:11:10 -0400
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"=>"2016-08-23T12:11:10-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.5ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 22ms (Views: 13.9ms | ActiveRecord: 3.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:11:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da57ccadffc850c52b557dbade83230b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 11, '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'da57ccadffc850c52b557dbade83230b', '9902a1d22a141a826ae31b1c83cb928c', 11, '127.0.0.1', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 16:11:10', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 53ms (Views: 14.6ms | ActiveRecord: 5.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60f8ff32ca7e7b59f5bb83cc9b1f68bd' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:11:10')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '60f8ff32ca7e7b59f5bb83cc9b1f68bd', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:11:10')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:11:10', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 12, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 [["id", 12]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 15.7ms | ActiveRecord: 17.3ms)
Started GET "/borrow_direct/BorrowDirect/12?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:11:10 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Redirected to http://www.example.com/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=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 2.1ms)
[1m[35mDispatchedService Load (0.3ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000416\n' WHERE `service_responses`.`id` = 15[0m
[1m[35m (0.6ms)[0m COMMIT
Started GET "/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=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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 2016-08-23 12:11:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"12", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:11:10-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 22ms (Views: 12.8ms | ActiveRecord: 3.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc00ed19ca73483209c4bff7286a0d5a' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fc00ed19ca73483209c4bff7286a0d5a', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:11:10', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 13, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m [["id", 13]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 51ms (Views: 13.9ms | ActiveRecord: 5.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '111e6e7cb4bc8d1f60800557dbbd7f1c' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '111e6e7cb4bc8d1f60800557dbbd7f1c', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 16:11:10')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:11:10', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 14, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 [["id", 14]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.9ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 54ms (Views: 13.4ms | ActiveRecord: 6.1ms)
Started GET "/borrow_direct/BorrowDirect/14" for 127.0.0.1 at 2016-08-23 12:11:10 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"14"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 14, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=14&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.7ms)
Started GET "/resolve?umlaut.request_id=14&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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 2016-08-23 12:11:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"14", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:11:10-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 [["id", 14]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.4ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 21ms (Views: 13.0ms | ActiveRecord: 3.4ms)
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2cfd5da3c004eb4e84a9e05c9e0fcd43' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 15, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 15, '2016-08-23 16:11:10')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2cfd5da3c004eb4e84a9e05c9e0fcd43', 'e7e9149c1fdfcd3be6736b651a0064bb', 15, '0.0.0.0', '2016-08-23 16:11:10')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'test_holding', 'holding', '2016-08-23 16:11:10')
[1m[36m (5.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:11:10')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 16:11:10', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d087ead6ca7b85d12e9dd0cd077fa6e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:11:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 16, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 16, '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2d087ead6ca7b85d12e9dd0cd077fa6e', 'e7e9149c1fdfcd3be6736b651a0064bb', 16, '0.0.0.0', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 16, 'test_holding', 'holding', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 16:11:10', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '548b76630a6842e46aedcff21c5e057f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 17, '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 17, '2016-08-23 16:11:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '548b76630a6842e46aedcff21c5e057f', 'e7e9149c1fdfcd3be6736b651a0064bb', 17, '0.0.0.0', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 17, 'test_holding', 'holding', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:11:10')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 16:11:10', '2016-08-23 16:11:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '103a174c2aed268c98d5060e69ed1e6e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 18, '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '103a174c2aed268c98d5060e69ed1e6e', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 18, '0.0.0.0', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:11:10', '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fbcf669f4e546f103c20e883483dcef4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:11:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fbcf669f4e546f103c20e883483dcef4', '1f2487b5ab29a0f58587335258d7f8e0', 19, '0.0.0.0', '2016-08-23 16:11:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:10')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 19, '2016-08-23 16:11:10', '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 18[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '991b5441f51a94fd03301991be3aab52' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '991b5441f51a94fd03301991be3aab52', '1f2487b5ab29a0f58587335258d7f8e0', 20, '0.0.0.0', '2016-08-23 16:11:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:11:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 20, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:11:10', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe2a5394831ac0b33724f2f2333a400c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 21, '2016-08-23 16:11:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fe2a5394831ac0b33724f2f2333a400c', '9902a1d22a141a826ae31b1c83cb928c', 21, '0.0.0.0', '2016-08-23 16:11:10')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 21, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:11:10', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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 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 (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb501d75b82803efc27ca94d6f751bcb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:11:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'cb501d75b82803efc27ca94d6f751bcb', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:11:10')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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 22\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 1.5ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e5024ea1904d1d8d50c37ea86f7c48cd' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:11:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e5024ea1904d1d8d50c37ea86f7c48cd', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 34\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:10')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.7ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd2d8c21c6ca92886c07af249e69814f2' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36mSQL (0.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', 'd2d8c21c6ca92886c07af249e69814f2', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:11:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 16:11:10', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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 14ms (ActiveRecord: 2.0ms)
[1m[36mDispatchedService Load (7.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (2.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 21[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4452598992855834da00c18e032cff9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b4452598992855834da00c18e032cff9', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 16:11:10')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 16:11:10', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://example.org
Completed 302 Found in 12ms (ActiveRecord: 2.1ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e2026f235857104d77b0974757991f2' 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 (0.4ms)[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 (2.8ms)[0m [1mBEGIN[0m
[1m[35m (2.2ms)[0m BEGIN
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 22
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:11:10')[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 16:11:10')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.8ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 39
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (2.2ms)[0m COMMIT
[1m[36mSQL (0.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', '9e2026f235857104d77b0974757991f2', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7111c9eaf99a990d0913ab2fceeaec3d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:11:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 16:11:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7111c9eaf99a990d0913ab2fceeaec3d', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36mDispatchedService Load (0.4ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 16:11:10', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:10')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 15ms (Views: 0.3ms | ActiveRecord: 2.8ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17bfe85182784bad50f7f625543e66b6' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:11:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 16:11:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '17bfe85182784bad50f7f625543e66b6', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 16:11:10')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:11:10')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[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=2016-08-23T12%3A11%3A10-04%3A00&ctx_id=&ctx_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 15ms (ActiveRecord: 7.6ms)
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (17.6ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (23.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 (26.4ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (25.2ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (39.8ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (16.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 (14.6ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.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 (12.1ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.5ms)[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 (11.2ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.9ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.8ms)[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 (12.9ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.4ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (11.7ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (11.5ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (11.0ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (38.5ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (12.2ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (11.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.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 (12.9ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.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 (9.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (10.5ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.3ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.1ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (10.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '93ee4d7cacb2e838907f3e64dc0d1af7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 1, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 1, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 1, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 1, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 1, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 1, '2016-08-23 16:11:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 1, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 1, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 1, '2016-08-23 16:11:32')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '93ee4d7cacb2e838907f3e64dc0d1af7', '06d451b80bf9fe3ce6849a48c98522d7', 1, 'info:sid/google', '0.0.0.0', '2016-08-23 16:11:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:11:32', '2016-08-23 16:11:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 1 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f42dd21d3a65b5485c4a0237b6c0c167' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 2, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 2, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[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, 2, '2016-08-23 16:11:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 2, '2016-08-23 16:11:32')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f42dd21d3a65b5485c4a0237b6c0c167', 'd95884a882a64501650fb8f9deae5104', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:11:32')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, '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', '2016-08-23 16:11:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:11:32', '2016-08-23 16:11:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23b6998adbfc7af8ae6ff8c0497b3bb6' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:11:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[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, 3, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 3, '2016-08-23 16:11:32')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '23b6998adbfc7af8ae6ff8c0497b3bb6', '62590701c6f35b45309577ef8c8c22b4', 3, '0.0.0.0', '2016-08-23 16:11:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:11:32')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5817e4595500a82b7d21f8076620400b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32')
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 16:11:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5817e4595500a82b7d21f8076620400b', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 16:11:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:11:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:11:32', '2016-08-23 16:11:32')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71e4d6bf0cb88a4425949b000947547e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:11:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '71e4d6bf0cb88a4425949b000947547e', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:11:32')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 5, '2016-08-23 16:11:32', '2016-08-23 16:11:32')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:32' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[36mDispatchedService Load (2.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.3ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (55.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (7.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 319ms (Views: 262.2ms | ActiveRecord: 9.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:11:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f78ba5ca51ad304acb6ffeb87c8d839d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 6, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 6, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 6, '2016-08-23 16:11:32')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f78ba5ca51ad304acb6ffeb87c8d839d', 'a03fb1fb17f24f5ea845bf6c4450490b', 6, '127.0.0.1', '2016-08-23 16:11:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 16:11:32', '2016-08-23 16:11:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22some+book%22', '2016-08-23 16:11:32')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:32' WHERE `dispatched_services`.`id` = 5
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 60ms (Views: 17.0ms | ActiveRecord: 8.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 2016-08-23 12:11:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c60657df5fd1a6b226db3f025fb0d7be' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 7, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 7, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 7, '2016-08-23 16:11:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c60657df5fd1a6b226db3f025fb0d7be', 'bc13b80c2923ce2cbe0c8347141587a7', 7, '127.0.0.1', '2016-08-23 16:11:32')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 16:11:32', '2016-08-23 16:11:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:32' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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` = 7
[1m[36mReferent Load (6.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (9.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (23.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 59ms (Views: 19.3ms | ActiveRecord: 12.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd9add3b2e3abd97fe78f21a14dc9da2' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:32')
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2016-08-23 16:11:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 8, '2016-08-23 16:11:32')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'bd9add3b2e3abd97fe78f21a14dc9da2', '318e542032e1812e600e07efbdb1dfcc', 8, '0.0.0.0', '2016-08-23 16:11:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 8, '2016-08-23 16:11:32', '2016-08-23 16:11:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=8" for 127.0.0.1 at 2016-08-23 12:11:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"8"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
[1m[36mDispatchedService Load (1.0ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 34ms (Views: 21.4ms | ActiveRecord: 4.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee115f5a658f61b4ecfd427e7ec577e8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:11:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:11:32')[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ee115f5a658f61b4ecfd427e7ec577e8', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:11:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:11:32', '2016-08-23 16:11:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (1.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:32')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:32' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (1.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.0ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 66ms (Views: 19.1ms | ActiveRecord: 8.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:11:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48c2be07f03330cb07d4883bf93238e5' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 10, '2016-08-23 16:11:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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=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', '48c2be07f03330cb07d4883bf93238e5', '9902a1d22a141a826ae31b1c83cb928c', 10, '127.0.0.1', '2016-08-23 16:11:32')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (5.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:11:32', '2016-08-23 16:11:32')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:11:32')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:32' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (5.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mReferent Load (1.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 61ms (Views: 14.9ms | ActiveRecord: 18.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04ec1a81d6bc0eb9f877ff006398348a' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:11:32')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 16:11:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '04ec1a81d6bc0eb9f877ff006398348a', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2016-08-23 16:11:32')
[1m[36m (2.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 16:11:32', '2016-08-23 16:11:32')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:32')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:32' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.4ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 51ms (Views: 14.2ms | ActiveRecord: 10.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48e1e2a0f36c53b07e2ff62ab07f9cb8' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:11:32')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '48e1e2a0f36c53b07e2ff62ab07f9cb8', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:11:32')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:11:32', '2016-08-23 16:11:32')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:32')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:32' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.4ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 52ms (Views: 19.8ms | ActiveRecord: 6.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:32 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b6d2b7125f01c63411437614a0470a2' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:11:32')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:11:32')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4b6d2b7125f01c63411437614a0470a2', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:11:33', '2016-08-23 16:11:33')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:33')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:24:in `initialize'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `new'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:76:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:24:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:76:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:33' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.2ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 52ms (Views: 14.7ms | ActiveRecord: 7.6ms)
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f67fa6e53e1303996b761b96b7037eaa' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 16:11:33')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f67fa6e53e1303996b761b96b7037eaa', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2016-08-23 16:11:33')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:11:33')
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fbc70d20178a9f14735bdf4e84ac3ce5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:11:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 15, '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fbc70d20178a9f14735bdf4e84ac3ce5', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 15, '0.0.0.0', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09c4b07378eb5824220a3c6679f83bb8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2016-08-23 16:11:33')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '09c4b07378eb5824220a3c6679f83bb8', '9902a1d22a141a826ae31b1c83cb928c', 16, '0.0.0.0', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9aaf0381104b5be889b6b3ec1349c7a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd9aaf0381104b5be889b6b3ec1349c7a', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
-----------------------------------------------------------------
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 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 (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd947d1c1ea237d9912b8ee2a4952ed97' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 16:11:33')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd947d1c1ea237d9912b8ee2a4952ed97', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 16:11:33')[0m
[1m[35m (0.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 18
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 18\n', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A11%3A33-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.3ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a9cf332ca7cf8f254feb4d8c2ed2650' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 16:11:33')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3a9cf332ca7cf8f254feb4d8c2ed2650', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 16:11:33')[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:33')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 16
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 16\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
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=2016-08-23T12%3A11%3A33-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f809123de0cff0f42b87792b609789a9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 16:11:33')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f809123de0cff0f42b87792b609789a9', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 20, '2016-08-23 16:11:33', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
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=2016-08-23T12%3A11%3A33-04%3A00&ctx_id=&ctx_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: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 303 See Other in 11ms (ActiveRecord: 2.3ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mDispatchedService Load (0.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:11:33' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7af54e6ee0370470a967ab3a16f2a8e5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 16:11:33')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7af54e6ee0370470a967ab3a16f2a8e5', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 16:11:33')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:11:33')[0m
[1m[35m (0.7ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2016-08-23 16:11:33', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Redirected to http://example.org
Completed 302 Found in 10ms (ActiveRecord: 2.4ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mRequest Load (2.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '47a745f95f9502ac44f6bb5eb26f9a8b' 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 (0.4ms)[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 (1.3ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:11:33' WHERE `dispatched_services`.`id` = 14[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:11:33')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:11:33')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '47a745f95f9502ac44f6bb5eb26f9a8b', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '61f3c4937a4b80c66f32de154f3d9468' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '61f3c4937a4b80c66f32de154f3d9468', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 23, '2016-08-23 16:11:33', '2016-08-23 16:11:33')
[1m[36m (5.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:33')[0m
[1m[35m (39.7ms)[0m COMMIT
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
BorrowDirect: Error placing request: NoMethodError undefined method `chomp' for nil:NilClass. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:50:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:20:in `initialize'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `new'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Rendered text template (0.0ms)
Completed 403 Forbidden in 61ms (Views: 0.9ms | ActiveRecord: 47.4ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m BEGIN
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ade1e10686434445ce7000e72b7e237e' 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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: NoMethodError\n:message: undefined method `chomp\' for nil:NilClass\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:50:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:20:in\n `initialize\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `new\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:11:33' WHERE `dispatched_services`.`id` = 15
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 25
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:11:33')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ade1e10686434445ce7000e72b7e237e', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
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=2016-08-23T12%3A11%3A33-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.5ms)
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a30c087e8d2bca77577df50388ce2e6' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 25, '2016-08-23 16:11:33')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 25, '2016-08-23 16:11:33')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9a30c087e8d2bca77577df50388ce2e6', 'e7e9149c1fdfcd3be6736b651a0064bb', 25, '0.0.0.0', '2016-08-23 16:11:33')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 25, 'test_holding', 'holding', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 16:11:33', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ac5ea2f68011ed7b2108cde9b53a9a4' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4ac5ea2f68011ed7b2108cde9b53a9a4', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:11:33', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2fe0514fb5841666327c4fc5c64eff6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e2fe0514fb5841666327c4fc5c64eff6', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 16:11:33')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:11:33')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:11:33', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'afc68dcea909e40b9179cd2676379801' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:11:33')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:11:33')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:11:33')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'afc68dcea909e40b9179cd2676379801', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (28, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:11:33')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:11:33', '2016-08-23 16:11:33')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (41.1ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.7ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (10.5ms)[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 (13.5ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.2ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (15.4ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.1ms)[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 (12.5ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (8.9ms)[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 (13.1ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (10.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 (10.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (14.4ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.9ms)[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 (12.3ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (36.8ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (15.6ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (13.2ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.8ms)[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 (11.9ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.6ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.6ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.0ms)[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 (11.2ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.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 (8.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 (11.2ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (34.7ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (10.8ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (10.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (10.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.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 2016-08-23 12:11:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7a6e3d495ddaaac713572bdc3d650e51' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:11:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:11:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7a6e3d495ddaaac713572bdc3d650e51', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 16:11:58')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 16:11:58', '2016-08-23 16:11:58')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (0.3ms)[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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:11:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:58' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.5ms)
[1m[35mDispatchedService Load (3.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (56.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 387ms (Views: 237.4ms | ActiveRecord: 29.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:11:58 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '13cc7536ce23011d80ed6d9f9803e286' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:11:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:11:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:11:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 16:11:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 16:11:58')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '13cc7536ce23011d80ed6d9f9803e286', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:11:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 16:11:58', '2016-08-23 16:11:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:11:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:58' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.4ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (21.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 68ms (Views: 17.4ms | ActiveRecord: 24.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 2016-08-23 12:11:59 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '437eab1ecccf50725e3ec017cbf95ea9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 16:11:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '437eab1ecccf50725e3ec017cbf95ea9', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 16:11:59', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (0.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 (0.5ms)[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[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 46ms (Views: 14.9ms | ActiveRecord: 6.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de16ca1dc063fcd5333de0adab456694' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 16:11:59')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'de16ca1dc063fcd5333de0adab456694', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 12:11:59 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.2ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 38ms (Views: 19.4ms | ActiveRecord: 4.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:59 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9e2069ec8af7256d63fe16ac786d407' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:11:59')
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:11:59')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e9e2069ec8af7256d63fe16ac786d407', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:11:59')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 16:11:59', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mReferent Load (2.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (6.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.2ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (27.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 28.2ms | ActiveRecord: 10.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:11:59 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0cdff24694aef7c77243872b13c3ccc8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', '0cdff24694aef7c77243872b13c3ccc8', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (0.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 (0.5ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (12.0ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mReferent Load (2.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 75ms (Views: 14.5ms | ActiveRecord: 20.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:59 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '362bfbf8c3c6bbefd67b4d2acc4c4aca' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '362bfbf8c3c6bbefd67b4d2acc4c4aca', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 16:11:59', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.1ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 47ms (Views: 15.8ms | ActiveRecord: 6.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:59 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '611ecc8d25728d453c1ac550d53d35d8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '611ecc8d25728d453c1ac550d53d35d8', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:11:59', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 46ms (Views: 14.6ms | ActiveRecord: 7.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:11:59 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b1c9e72f118502d5172eb516cd7ff285' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b1c9e72f118502d5172eb516cd7ff285', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (0.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:11:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.6ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 46ms (Views: 14.2ms | ActiveRecord: 8.0ms)
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d3259110ec8f12b0ec3ca2adbc5e5e5' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2d3259110ec8f12b0ec3ca2adbc5e5e5', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (6.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (10, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:11:59')
[1m[36m (6.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:11:59')[0m
[1m[35m (5.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 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 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f375e80cae6424eecc27a3c63a231796' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f375e80cae6424eecc27a3c63a231796', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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: No existing bd_request_prompt response found for request 11\n', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T12%3A11%3A59-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4c5670f4afb162beccba3693ac18bf1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 16:11:59')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a4c5670f4afb162beccba3693ac18bf1', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[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 11
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 11\n', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A11%3A59-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'afbfa9c412ada98e5a356b2809e7afd5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'afbfa9c412ada98e5a356b2809e7afd5', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 13, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T12%3A11%3A59-04%3A00&ctx_id=&ctx_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: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 10ms (ActiveRecord: 2.3ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mDispatchedService Load (0.6ms)[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[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '40aa5b3b369d0d4b1fab4ecbeb4c0f79' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '40aa5b3b369d0d4b1fab4ecbeb4c0f79', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 14, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 14, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:59')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.1ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ef124e4f2a95db7bc5abcfcdceb5dd62' 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 (0.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 (1.2ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 12[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:11:59')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:11:59')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36mSQL (0.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 16[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'ef124e4f2a95db7bc5abcfcdceb5dd62', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:59')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7fed9332a4ced5ec5f893a9df5e37435' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7fed9332a4ced5ec5f893a9df5e37435', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 16, '2016-08-23 16:11:59', '2016-08-23 16:11:59')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 11ms (Views: 0.3ms | ActiveRecord: 2.6ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '46c439a30e19af067f2733d8343d92cb' 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 (0.4ms)[0m SELECT `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
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 13
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:11:59')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 16:11:59')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 20
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', '46c439a30e19af067f2733d8343d92cb', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A11%3A59-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ffe4e54f8d916890dc2528fcfe4cc967' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[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, 18, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 18, '2016-08-23 16:11:59')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ffe4e54f8d916890dc2528fcfe4cc967', '62590701c6f35b45309577ef8c8c22b4', 18, '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 16:11:59')[0m
[1m[35m (6.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17d104f4a8eec4b21a35298959e1c24e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 19, '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 19, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.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, 19, '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 19, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 19, '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 19, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 19, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 19, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 19, '2016-08-23 16:11:59')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '17d104f4a8eec4b21a35298959e1c24e', '06d451b80bf9fe3ce6849a48c98522d7', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 19 LIMIT 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '672b980ad47ef86e8f47b2131e07a896' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 20, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 20, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[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, 20, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 20, '2016-08-23 16:11:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '672b980ad47ef86e8f47b2131e07a896', 'd95884a882a64501650fb8f9deae5104', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, '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', '2016-08-23 16:11:59')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:11:59', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b40b1ba54caf45439f9b2b959e470435' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 16:11:59')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b40b1ba54caf45439f9b2b959e470435', '1f2487b5ab29a0f58587335258d7f8e0', 21, '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:11:59', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df2c8db631ebef49d564faeeef6c05a4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 22, '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'df2c8db631ebef49d564faeeef6c05a4', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 22, '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '723e7f9346e0e41ff1bc119a018b24f2' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 23, '2016-08-23 16:11:59')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '723e7f9346e0e41ff1bc119a018b24f2', '9902a1d22a141a826ae31b1c83cb928c', 23, '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5fbc972932844712ef22e90c27325bd6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:11:59')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5fbc972932844712ef22e90c27325bd6', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b8d57045f6130749b2088f4261d9259' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9b8d57045f6130749b2088f4261d9259', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:11:59')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e1adf178260d8de960f1dace5bb9947' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 16:11:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1e1adf178260d8de960f1dace5bb9947', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 16:11:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT 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', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05cd1aaad6e78fa442441f4d33b4424d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '05cd1aaad6e78fa442441f4d33b4424d', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'test_holding', 'holding', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:11:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '75c38b3a851233de526145d18ec44b6d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:59')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:11:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:11:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:11:59')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '75c38b3a851233de526145d18ec44b6d', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:11:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'test_holding', 'holding', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:11:59', '2016-08-23 16:11:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (17.8ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (32.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 (16.3ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (17.0ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (13.5ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (11.8ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.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 (16.5ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (9.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.8ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.0ms)[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 (10.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.2ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (36.8ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (15.1ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.0ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (17.6ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.0ms)[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 (11.9ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.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 (13.2ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (11.4ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (10.2ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (11.7ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.5ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.4ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.7ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (8.8ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (15.0ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
-----------------------------------------------------------------
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: 5.1ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 20ms (Views: 0.2ms | ActiveRecord: 1.8ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '308b127df33430c1745f20dfa052c02c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 16:12:17')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '308b127df33430c1745f20dfa052c02c', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 16:12:17')[0m
[1m[35m (6.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 1\n', 1, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Redirected to http://test.host/resolve?umlaut.request_id=1&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A12%3A17-04%3A00&ctx_id=&ctx_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: 14.4ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f644b77733aa7367e4cc3a5e965ec3da' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f644b77733aa7367e4cc3a5e965ec3da', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A12%3A17-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3fa10af95004c6879f06b922676652a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:12:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:12:17')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b3fa10af95004c6879f06b922676652a', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:17')[0m
[1m[35m (0.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 16:12:17', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A12%3A17-04%3A00&ctx_id=&ctx_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: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 18ms (ActiveRecord: 3.7ms)
[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[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:12:17' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd967869184b89cbebdef1ac9c40de322' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:12:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:12:17')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd967869184b89cbebdef1ac9c40de322', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:12:17')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 16:12:17', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://example.org
Completed 302 Found in 13ms (ActiveRecord: 4.3ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1be779c84106275155e2d1ccd57e689f' 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 (0.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 (1.2ms)[0m BEGIN
[1m[36m (1.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:12:17' WHERE `dispatched_services`.`id` = 2[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:12:17')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:12:17')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '1be779c84106275155e2d1ccd57e689f', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a088b805ffa4cb8bfb3af7b1d3139c9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:12:17')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4a088b805ffa4cb8bfb3af7b1d3139c9', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:12:17', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:17')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 8ms (Views: 0.3ms | ActiveRecord: 2.0ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ff1cf18301c872793bda90fd6bc4136' 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 (0.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 (1.2ms)[0m [1mBEGIN[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:12:17' WHERE `dispatched_services`.`id` = 3
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:12:17')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:12:17')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.7ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.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', '0ff1cf18301c872793bda90fd6bc4136', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:17')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Redirected to http://test.host/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=2016-08-23T12%3A12%3A17-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.6ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0e587c2be4abb220660a9439aeeb974' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 8, '2016-08-23 16:12:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 8, '2016-08-23 16:12:17')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd0e587c2be4abb220660a9439aeeb974', 'e7e9149c1fdfcd3be6736b651a0064bb', 8, '0.0.0.0', '2016-08-23 16:12:17')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_holding', 'holding', '2016-08-23 16:12:17')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:12:17', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2317914a2094a27423ec593ef4c5cd65' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 9, '2016-08-23 16:12:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 9, '2016-08-23 16:12:17')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2317914a2094a27423ec593ef4c5cd65', 'e7e9149c1fdfcd3be6736b651a0064bb', 9, '0.0.0.0', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 9, 'test_holding', 'holding', '2016-08-23 16:12:17')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 16:12:17', '2016-08-23 16:12:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c6d0c66f85d3a9eb7fc74d0f7d0a246' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:12:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5c6d0c66f85d3a9eb7fc74d0f7d0a246', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'test_holding', 'holding', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:12:17', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:17 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9426497c26f1712bd2be8e17ce37956' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:12:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 16:12:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a9426497c26f1712bd2be8e17ce37956', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2016-08-23 16:12:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 11, '2016-08-23 16:12:17', '2016-08-23 16:12:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:12:17' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.0ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (10.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (60.2ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 303ms (Views: 248.8ms | ActiveRecord: 8.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:12:18 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '852c93f158070bb7de6ebbd85c016d18' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 12, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 12, '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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?genre=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '852c93f158070bb7de6ebbd85c016d18', 'a03fb1fb17f24f5ea845bf6c4450490b', 12, '127.0.0.1', '2016-08-23 16:12:18')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:12:18', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, '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', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:12:18' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.9ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.4ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (20.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 66ms (Views: 17.0ms | ActiveRecord: 23.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 2016-08-23 12:12:18 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f43f905b1840affe39c9fe4106d5e140' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 13, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 13, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 13, '2016-08-23 16:12:18')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f43f905b1840affe39c9fe4106d5e140', 'bc13b80c2923ce2cbe0c8347141587a7', 13, '127.0.0.1', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:12:18', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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 (6.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:12:18' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 58ms (Views: 15.3ms | ActiveRecord: 5.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e3b6273002cf102ff6152d98a25d80b' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 14, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 14, '2016-08-23 16:12:18')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2e3b6273002cf102ff6152d98a25d80b', '318e542032e1812e600e07efbdb1dfcc', 14, '0.0.0.0', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 14, '2016-08-23 16:12:18', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=14" for 127.0.0.1 at 2016-08-23 12:12:18 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"14"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.6ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 22ms (Views: 13.3ms | ActiveRecord: 2.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:18 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '97d3e6a041f665bc8163d40859c85d32' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '97d3e6a041f665bc8163d40859c85d32', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:12:18', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:12:18' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 48ms (Views: 14.9ms | ActiveRecord: 7.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:12:18 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf8c0811e927995fb5095b75731bfbf2' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'cf8c0811e927995fb5095b75731bfbf2', '9902a1d22a141a826ae31b1c83cb928c', 16, '127.0.0.1', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:12:18', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:12:18' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.3ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 47ms (Views: 15.2ms | ActiveRecord: 7.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:18 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f0ca45d7c78d1f3624dc5921a3ddc403' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:12:18')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f0ca45d7c78d1f3624dc5921a3ddc403', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:12:18')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:12:18', '2016-08-23 16:12:18')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (5.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:18')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:12:18' WHERE `dispatched_services`.`id` = 13
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 64ms (Views: 15.8ms | ActiveRecord: 7.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:18 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '75d72f9cdb94726d90ad95433b4d2341' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '75d72f9cdb94726d90ad95433b4d2341', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:12:18', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:12:18' WHERE `dispatched_services`.`id` = 14[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 45ms (Views: 14.0ms | ActiveRecord: 5.5ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:18 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f1fc1409e00640c8ffac3520d7f7172' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9f1fc1409e00640c8ffac3520d7f7172', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:12:18', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError BorrowDirect::Authentication requires an api key as third paramter or set in BorrowDirect::Defaults.api_key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:27:in `initialize'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `new'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:144:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: BorrowDirect::Authentication requires an api key as third paramter or set\n in BorrowDirect::Defaults.api_key\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:27:in\n `initialize\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `new\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:144:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:12:18' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mReferent Load (1.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 46ms (Views: 15.0ms | ActiveRecord: 7.7ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b174d083ea60c2c63fa3599c1dd8f7a' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2016-08-23 16:12:18')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2b174d083ea60c2c63fa3599c1dd8f7a', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (20, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:12:18', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db45a2d2e563d8ab5404a983b4787b18' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 21, '2016-08-23 16:12:18')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'db45a2d2e563d8ab5404a983b4787b18', '9902a1d22a141a826ae31b1c83cb928c', 21, '0.0.0.0', '2016-08-23 16:12:18')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49f7b36157b25983f19a6d7c98ad2de4' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 22, '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '49f7b36157b25983f19a6d7c98ad2de4', '1f2487b5ab29a0f58587335258d7f8e0', 22, '0.0.0.0', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '172514d869f059e221929bea2b3b4af2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:12:18')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '172514d869f059e221929bea2b3b4af2', '1f2487b5ab29a0f58587335258d7f8e0', 23, '0.0.0.0', '2016-08-23 16:12:18')
[1m[36m (6.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:18')
[1m[36m (4.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c140cafec1088f70a93967f52e8e66e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 24, '2016-08-23 16:12:18')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8c140cafec1088f70a93967f52e8e66e', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 24, '0.0.0.0', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c901b4dfd4b362c47499ef69702232d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 25, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 25, '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 25, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 25, '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 25, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 25, '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 25, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 25, '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 25, '2016-08-23 16:12:18')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4c901b4dfd4b362c47499ef69702232d', '06d451b80bf9fe3ce6849a48c98522d7', 25, 'info:sid/google', '0.0.0.0', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 16:12:18', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 25 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '02882d665d7eeeb3c6313f548e7d0af5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[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, 26, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '02882d665d7eeeb3c6313f548e7d0af5', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, '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', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b64492d591772789606a6124a233c76f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 27, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 27, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 27, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[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, 27, '2016-08-23 16:12:18')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 27, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 27, '2016-08-23 16:12:18')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b64492d591772789606a6124a233c76f', 'd95884a882a64501650fb8f9deae5104', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:12:18', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'beafbdf6185d1e7bfae5e11523d17362' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:12:18')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:12:18')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'beafbdf6185d1e7bfae5e11523d17362', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:18')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:12:18', '2016-08-23 16:12:18')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (16.2ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (27.6ms)[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 (17.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (17.1ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (13.3ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (13.5ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.9ms)[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 (10.8ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.2ms)[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 (12.7ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (11.4ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.9ms)[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 (11.7ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.8ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (37.2ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (13.8ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.7ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (13.1ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (11.7ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (8.7ms)[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 (12.2ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.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 (11.7ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.7ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (31.9ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (10.7ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
-----------------------------------------------------------------
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: 4.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 21ms (Views: 0.2ms | ActiveRecord: 1.9ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '267ff2411828df79b6c6d5e037e4f611' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 16:12:54')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '267ff2411828df79b6c6d5e037e4f611', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 16:12:54')[0m
[1m[35m (0.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 1\n', 1, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Redirected to http://test.host/resolve?umlaut.request_id=1&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A12%3A54-04%3A00&ctx_id=&ctx_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 19ms (ActiveRecord: 2.9ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a2c8609a67e1017aa124da23e12d8d6c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a2c8609a67e1017aa124da23e12d8d6c', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 2, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Redirected to http://test.host/resolve?umlaut.request_id=2&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A12%3A54-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd65d4cdc79373a7e42e748372e5a5b3b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd65d4cdc79373a7e42e748372e5a5b3b', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 3, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 16:12:54', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Redirected to http://test.host/resolve?umlaut.request_id=3&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A12%3A54-04%3A00&ctx_id=&ctx_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 20ms (ActiveRecord: 3.4ms)
[1m[35mDispatchedService Load (2.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://rc.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"BD\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:12:54' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5[0m
[1m[35m (0.4ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7352566ec72ca7f98c24fbe3055329e3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:12:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7352566ec72ca7f98c24fbe3055329e3', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:12:54')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 16:12:54', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Redirected to http://example.org
Completed 302 Found in 12ms (ActiveRecord: 4.1ms)
---------------------------------------------------------------------------------
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://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a4555cc1f39c71836371ec2a7e8a57a' 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 (0.5ms)[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.2ms)[0m BEGIN
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54')
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://rc.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"BD\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:12:54' WHERE `dispatched_services`.`id` = 2[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:12:54')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:12:54')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.1ms)[0m COMMIT
[1m[36mSQL (0.5ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '6a4555cc1f39c71836371ec2a7e8a57a', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '00b6683b67241481483817d253a6c4bb' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '00b6683b67241481483817d253a6c4bb', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:12:54')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:12:54', '2016-08-23 16:12:54')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:54')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 29ms (Views: 0.4ms | ActiveRecord: 15.0ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24a9514d5de5b1a9d74ec6feb824455e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:12:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '24a9514d5de5b1a9d74ec6feb824455e', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Redirected to http://test.host/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=2016-08-23T12%3A12%3A54-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.3ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8da8055f06d28e5f3407dac0c391006' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:12:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 8, '2016-08-23 16:12:54')[0m
[1m[35mSQL (6.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 8, '2016-08-23 16:12:54')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd8da8055f06d28e5f3407dac0c391006', 'e7e9149c1fdfcd3be6736b651a0064bb', 8, '0.0.0.0', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (8, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:12:54')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:12:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:12:54', '2016-08-23 16:12:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '127637a456933d8a1223e3c04d6ad3e6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:12:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:12:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '127637a456933d8a1223e3c04d6ad3e6', '1f2487b5ab29a0f58587335258d7f8e0', 9, '0.0.0.0', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 16:12:54', '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a7015af2aeb6fbb10683d2129b55bb0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9a7015af2aeb6fbb10683d2129b55bb0', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 10, 'test_holding', 'holding', '2016-08-23 16:12:54')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:12:54', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c3de420fcf386b31726360482036953' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.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', '5c3de420fcf386b31726360482036953', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 16:12:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 11, 'test_holding', 'holding', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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%22title%22', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:12:54', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d9ea0ac46940bf131deef2e2d5ffc0f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:12:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:12:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2d9ea0ac46940bf131deef2e2d5ffc0f', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:12:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', 12, 'test_holding', 'holding', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:12:54')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:12:54', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e331517e0a00b39fa8a126c8607bfd1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5e331517e0a00b39fa8a126c8607bfd1', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 13, '2016-08-23 16:12:54', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:54')[0m
[1m[35m (0.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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://rc.relais-host.com/\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:12:54' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (12.7ms)[0m COMMIT
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (2.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[36mDispatchedService Load (3.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (1.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (57.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 317ms (Views: 251.7ms | ActiveRecord: 10.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:12:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e19a9ad683b179ec3e17673f86fb24d0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 14, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 14, '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 14, '2016-08-23 16:12:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e19a9ad683b179ec3e17673f86fb24d0', 'a03fb1fb17f24f5ea845bf6c4450490b', 14, '127.0.0.1', '2016-08-23 16:12:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:12:54', '2016-08-23 16:12:54')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22some+book%22', '2016-08-23 16:12:54')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:12:54' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 50ms (Views: 16.7ms | ActiveRecord: 6.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 2016-08-23 12:12:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8b8307ad22584b8672926cd02a93254' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 15, '2016-08-23 16:12:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 15, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 15, '2016-08-23 16:12:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a8b8307ad22584b8672926cd02a93254', 'bc13b80c2923ce2cbe0c8347141587a7', 15, '127.0.0.1', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:12:54', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:12:54' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (9.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (23.7ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 63ms (Views: 27.4ms | ActiveRecord: 6.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '449865918c63f46f9ac2ac4fa85dd9aa' 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 (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 16:12:54')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 16, '2016-08-23 16:12:54')[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 16, '2016-08-23 16:12:54')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '449865918c63f46f9ac2ac4fa85dd9aa', '318e542032e1812e600e07efbdb1dfcc', 16, '0.0.0.0', '2016-08-23 16:12:54')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 16, '2016-08-23 16:12:54', '2016-08-23 16:12:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=16" for 127.0.0.1 at 2016-08-23 12:12:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"16"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.3ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
BorrowDirect: Error placing request: BorrowDirect::Error PUBAZ006: Invalid API key. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 200 OK in 40ms (Views: 24.8ms | ActiveRecord: 5.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1facf7d4189dcee6196e7f42955d658b' 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[35mDispatchedService Load (1.7ms)[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 (2.4ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:54')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:12:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:12:54' WHERE `dispatched_services`.`id` = 3
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1facf7d4189dcee6196e7f42955d658b', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:12:55')[0m
[1m[35m (8.5ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (1.6ms)[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` = 11
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (6.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:12:55', '2016-08-23 16:12:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:55')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 3 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 52ms (ActiveRecord: 17.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:12:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9aa2223fc55a25c38391f54b17add95' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:12:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 18, '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f9aa2223fc55a25c38391f54b17add95', '9902a1d22a141a826ae31b1c83cb928c', 18, '127.0.0.1', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:12:55', '2016-08-23 16:12:55')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 28ms (ActiveRecord: 4.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ccaa1e754fb776288681570a2d41b6f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:12:55')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4ccaa1e754fb776288681570a2d41b6f', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:12:55', '2016-08-23 16:12:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 28ms (ActiveRecord: 3.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e51eb948be777f151045d31153f544f6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:12:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e51eb948be777f151045d31153f544f6', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 16:12:55', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 26ms (ActiveRecord: 3.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:12:55 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd25018c842a4fd0ecd52956330bd4356' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd25018c842a4fd0ecd52956330bd4356', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:12:55', '2016-08-23 16:12:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://rc.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"BD","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 29ms (ActiveRecord: 3.0ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa5e4fdcf522f844a90bebf4b9854f6d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:12:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 22, '2016-08-23 16:12:55')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fa5e4fdcf522f844a90bebf4b9854f6d', '9902a1d22a141a826ae31b1c83cb928c', 22, '0.0.0.0', '2016-08-23 16:12:55')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24be26814744bb1b3ba65dc046a8ebce' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:12:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 23, '2016-08-23 16:12:55')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '24be26814744bb1b3ba65dc046a8ebce', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 23, '0.0.0.0', '2016-08-23 16:12:55')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37447acd3217b3507e2dbd1f4249f983' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:12:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:12:55')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '37447acd3217b3507e2dbd1f4249f983', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:55')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1dbcfd86e26ee631c50bd269487320a8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:12:55')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1dbcfd86e26ee631c50bd269487320a8', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 16:12:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1c4168be625e20ffe35707b0aeb3796' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:12:55')
[1m[36mSQL (0.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, 26, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c1c4168be625e20ffe35707b0aeb3796', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, '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', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7331c06e26c73294e419773943e04420' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:12:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2016-08-23 16:12:55')
[1m[36mSQL (0.2ms)[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, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[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, '2016-08-23 16:12:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2016-08-23 16:12:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2016-08-23 16:12:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2016-08-23 16:12:55')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7331c06e26c73294e419773943e04420', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:12:55', '2016-08-23 16:12:55')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd444869c90e2f6c552b03c6c0bc83e76' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:12:55')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 28, '2016-08-23 16:12:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 28, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[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, 28, '2016-08-23 16:12:55')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 28, '2016-08-23 16:12:55')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 28, '2016-08-23 16:12:55')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd444869c90e2f6c552b03c6c0bc83e76', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 16:12:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, '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', '2016-08-23 16:12:55')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:12:55', '2016-08-23 16:12:55')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (14.0ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (7.4ms)[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 (16.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (17.3ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (36.4ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (11.9ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.7ms)[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 (12.7ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (10.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 (10.7ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.0ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (10.0ms)[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 (12.7ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (11.2ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (10.9ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.2ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.5ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.3ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (30.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 (11.6ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.1ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.1ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (26.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 (11.9ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (10.9ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.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 (13.2ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.4ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (8.9ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (11.2ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd467b361bbb87325481a56a83da507e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 1, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 1, '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 1, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 1, '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 1, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 1, '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 1, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 1, '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 1, '2016-08-23 16:13:29')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'cd467b361bbb87325481a56a83da507e', '06d451b80bf9fe3ce6849a48c98522d7', 1, 'info:sid/google', '0.0.0.0', '2016-08-23 16:13:29')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:13:29', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 1 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b5a5993806d1fc68308861255555cf8' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 2, '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 2, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[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, 2, '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 2, '2016-08-23 16:13:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '3b5a5993806d1fc68308861255555cf8', 'd95884a882a64501650fb8f9deae5104', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:13:29')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, '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', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:13:29', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fdf58318d33808e32cd0bf634ba1725' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[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, 3, '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 3, '2016-08-23 16:13:29')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3fdf58318d33808e32cd0bf634ba1725', '62590701c6f35b45309577ef8c8c22b4', 3, '0.0.0.0', '2016-08-23 16:13:29')
[1m[36m (5.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:13:29')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8a0825c860867076d3ac3de31c805fc' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 4, '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 4, '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c8a0825c860867076d3ac3de31c805fc', 'e7e9149c1fdfcd3be6736b651a0064bb', 4, '0.0.0.0', '2016-08-23 16:13:29')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (4, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:13:29', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3eb658f0e31828dc9c7a4e2f2628129a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:13:29')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3eb658f0e31828dc9c7a4e2f2628129a', '1f2487b5ab29a0f58587335258d7f8e0', 5, '0.0.0.0', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:13:29', '2016-08-23 16:13:29')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[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 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54851b87349bc02c1ac244cb6545fe64' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:13:29')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '54851b87349bc02c1ac244cb6545fe64', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 6
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 6\n', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Redirected to http://test.host/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=2016-08-23T12%3A13%3A29-04%3A00&ctx_id=&ctx_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 9ms (ActiveRecord: 1.4ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18e30e7b72ccc4d0fb2c2b93b78f8747' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:13:29')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '18e30e7b72ccc4d0fb2c2b93b78f8747', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:13:29')[0m
[1m[35m (0.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 7\n', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Redirected to http://test.host/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=2016-08-23T12%3A13%3A29-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4357ed63f899ba0317cd9c5b8edf7e8e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 16:13:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4357ed63f899ba0317cd9c5b8edf7e8e', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 16:13:29')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 8, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2016-08-23 16:13:29', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Redirected to http://test.host/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=2016-08-23T12%3A13%3A29-04%3A00&ctx_id=&ctx_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: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 15ms (ActiveRecord: 2.4ms)
[1m[36mDispatchedService Load (0.7ms)[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[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:13:29' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bdde5b1695cd78fc96acdbb43356fcaf' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 16:13:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'bdde5b1695cd78fc96acdbb43356fcaf', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 9, '2016-08-23 16:13:29', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Redirected to http://example.org
Completed 302 Found in 11ms (ActiveRecord: 4.5ms)
---------------------------------------------------------------------------------
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 http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c34242883a5149e54f9fbc7d771968c9' 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 (0.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 (1.8ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:13:29' WHERE `dispatched_services`.`id` = 6
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:13:29')[0m
[1m[35mSQL (5.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:13:29')
[1m[36m (12.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12[0m
[1m[35m (10.5ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c34242883a5149e54f9fbc7d771968c9', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:13:29')
[1m[36m (7.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:13:29')[0m
[1m[35m (0.6ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 11ms (ActiveRecord: 1.4ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af87e134dfd87d04eaad19878f6f6950' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'af87e134dfd87d04eaad19878f6f6950', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:13:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 11, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:13:29')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 11, '2016-08-23 16:13:29', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
BorrowDirect: Error placing request: ArgumentError Request URI must have schema. Possibly add 'http://' to the request URI?. Backtrace:
httpclient (2.8.0) lib/httpclient/session.rb:200:in `get_session'
httpclient (2.8.0) lib/httpclient/session.rb:168:in `query'
httpclient (2.8.0) lib/httpclient.rb:1238:in `do_get_block'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Rendered text template (0.0ms)
Completed 403 Forbidden in 12ms (Views: 1.0ms | ActiveRecord: 2.3ms)
[1m[35mDispatchedService Load (0.6ms)[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
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mRequest Load (2.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65202217d62fce4736f7d42ccf911efd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: Request URI must have schema. Possibly add \'http://\' to the request URI?\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:200:in\n `get_session\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:168:in\n `query\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1238:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:13:29' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (1.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:13:29')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 16[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, 12, '2016-08-23 16:13:29')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '65202217d62fce4736f7d42ccf911efd', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A13%3A29-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:13:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e59a5b95b923e60ba8302d27e0c12252' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:13:29')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e59a5b95b923e60ba8302d27e0c12252', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 13, '2016-08-23 16:13:29', '2016-08-23 16:13:29')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:13:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError Request URI must have schema. Possibly add 'http://' to the request URI?. Backtrace:
httpclient (2.8.0) lib/httpclient/session.rb:200:in `get_session'
httpclient (2.8.0) lib/httpclient/session.rb:168:in `query'
httpclient (2.8.0) lib/httpclient.rb:1238:in `do_get_block'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: Request URI must have schema. Possibly add \'http://\' to the request URI?\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:200:in\n `get_session\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:168:in\n `query\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1238:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:13:29' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.3ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (57.7ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 299ms (Views: 245.7ms | ActiveRecord: 9.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:13:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ef1e7e4781d013db10864ee2ecd2ad3a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 14, '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 14, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 14, '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ef1e7e4781d013db10864ee2ecd2ad3a', 'a03fb1fb17f24f5ea845bf6c4450490b', 14, '127.0.0.1', '2016-08-23 16:13:29')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:13:29', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:13:29' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.1ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 50ms (Views: 15.3ms | ActiveRecord: 7.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 2016-08-23 12:13:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39722a6c0e5bc2816647a684363a253e' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 15, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 15, '2016-08-23 16:13:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 15, '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '39722a6c0e5bc2816647a684363a253e', 'bc13b80c2923ce2cbe0c8347141587a7', 15, '127.0.0.1', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:13:29', '2016-08-23 16:13:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (6.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `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[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:13:29' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 67ms (Views: 15.8ms | ActiveRecord: 5.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc20e6c994635b7d44019d14613d29ea' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 16:13:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 16, '2016-08-23 16:13:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 16, '2016-08-23 16:13:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'cc20e6c994635b7d44019d14613d29ea', '318e542032e1812e600e07efbdb1dfcc', 16, '0.0.0.0', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 16, '2016-08-23 16:13:30', '2016-08-23 16:13:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=16" for 127.0.0.1 at 2016-08-23 12:13:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"16"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.7ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 24ms (Views: 15.4ms | ActiveRecord: 2.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:13:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cea1b49d1202381eb841b500ff02244f' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:13:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'cea1b49d1202381eb841b500ff02244f', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:13:30', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:13:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 3 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 38ms (ActiveRecord: 3.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:13:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf18d55ef98665af72561bb182517266' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:13:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 18, '2016-08-23 16:13:30')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'cf18d55ef98665af72561bb182517266', '9902a1d22a141a826ae31b1c83cb928c', 18, '127.0.0.1', '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:13:30', '2016-08-23 16:13:30')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:13:30')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 46ms (ActiveRecord: 3.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:13:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb85b7a5f0ff6ba347282a695be112dc' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:13:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:13:30')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'cb85b7a5f0ff6ba347282a695be112dc', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:13:30', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (6.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:13:30')
[1m[36m (5.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 55ms (ActiveRecord: 2.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:13:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f3709f1ae7db305d1353d6d558af5a2' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:13:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '9f3709f1ae7db305d1353d6d558af5a2', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 16:13:30', '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 39ms (ActiveRecord: 3.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:13:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3bc8f76bf1ff5e8f9687b4cab111aeb8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:13:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3bc8f76bf1ff5e8f9687b4cab111aeb8', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:13:30', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 35ms (ActiveRecord: 3.3ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7202d54f64f229115932faa95cfa0246' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 22, '2016-08-23 16:13:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 22, '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7202d54f64f229115932faa95cfa0246', 'e7e9149c1fdfcd3be6736b651a0064bb', 22, '0.0.0.0', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 22, 'test_holding', 'holding', '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-23 16:13:30', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9b05d30fb8b62da931776689bf50217' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:13:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 23, '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 23, '2016-08-23 16:13:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e9b05d30fb8b62da931776689bf50217', 'e7e9149c1fdfcd3be6736b651a0064bb', 23, '0.0.0.0', '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', 23, 'test_holding', 'holding', '2016-08-23 16:13:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:13:30')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 16:13:30', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2e6afd2d3a3684f40ac25e6f3f738fe' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:13:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 24, '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 24, '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b2e6afd2d3a3684f40ac25e6f3f738fe', 'e7e9149c1fdfcd3be6736b651a0064bb', 24, '0.0.0.0', '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'test_holding', 'holding', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 16:13:30', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f019959ac1ba33bd41aa77f4a9d967b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:13:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:13:30')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9f019959ac1ba33bd41aa77f4a9d967b', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:13:30')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb4757d4bbbdfc9cb5efa9482e4b679f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:13:30')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'cb4757d4bbbdfc9cb5efa9482e4b679f', '1f2487b5ab29a0f58587335258d7f8e0', 26, '0.0.0.0', '2016-08-23 16:13:30')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:13:30')[0m
[1m[35m (4.9ms)[0m COMMIT
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '601a5ed6ca8fbc3c7c4f4d5ed8748610' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:13:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 27, '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '601a5ed6ca8fbc3c7c4f4d5ed8748610', '9902a1d22a141a826ae31b1c83cb928c', 27, '0.0.0.0', '2016-08-23 16:13:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:13:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb37b79fd5b318497ac326278b77b669' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:13:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:13:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 28, '2016-08-23 16:13:30')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'fb37b79fd5b318497ac326278b77b669', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 28, '0.0.0.0', '2016-08-23 16:13:30')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:13:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (23.9ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (9.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 (10.4ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (14.6ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (14.4ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (11.5ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.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 (10.8ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (11.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.6ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.8ms)[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 (9.9ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (30.2ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (14.4ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.5ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.6ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.5ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.8ms)[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 (11.6ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.0ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.6ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.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 (11.0ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.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 (10.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 (11.5ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (37.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (11.1ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (12.0ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.4ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (11.6ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.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 2016-08-23 12:13:50 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '669e28f42b9a91e96c0d0b9d8d55627d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:50')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:13:50')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:13:50')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '669e28f42b9a91e96c0d0b9d8d55627d', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 16:13:50')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 16:13:50', '2016-08-23 16:13:50')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:13:50')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError Request URI must have schema. Possibly add 'http://' to the request URI?. Backtrace:
httpclient (2.8.0) lib/httpclient/session.rb:200:in `get_session'
httpclient (2.8.0) lib/httpclient/session.rb:168:in `query'
httpclient (2.8.0) lib/httpclient.rb:1238:in `do_get_block'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: Request URI must have schema. Possibly add \'http://\' to the request URI?\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:200:in\n `get_session\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:168:in\n `query\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1238:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:13:50' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (5.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.9ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (55.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (25.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 388ms (Views: 259.2ms | ActiveRecord: 15.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:13:50 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c8c69378c986517ea8c0826f3109c60' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:13:50')
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:13:50')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:13:50')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 16:13:50')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 16:13:50')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '5c8c69378c986517ea8c0826f3109c60', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:13:50')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 16:13:50', '2016-08-23 16:13:50')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:13:50')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:13:50' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 52ms (Views: 16.8ms | ActiveRecord: 7.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 2016-08-23 12:13:50 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24b8d19eb83708e3de6b0e0a8934a431' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:13:50')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:13:50')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 16:13:50')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 16:13:50')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 16:13:50')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '24b8d19eb83708e3de6b0e0a8934a431', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 16:13:50')
[1m[36m (5.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 16:13:50', '2016-08-23 16:13:50')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:13:50' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 60ms (Views: 14.3ms | ActiveRecord: 16.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45a6cf0133377ee0af2e7e8f99700d26' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:13:50')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:13:50')[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 16:13:50')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 16:13:50')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '45a6cf0133377ee0af2e7e8f99700d26', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 16:13:50')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 16:13:50', '2016-08-23 16:13:50')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 12:13:51 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (0.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (19.0ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.4ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 33ms (Views: 20.4ms | ActiveRecord: 4.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:13:51 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af69dd44015e6b7569afdf75402e5a08' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:13:51')
[1m[36m (2.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'af69dd44015e6b7569afdf75402e5a08', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 16:13:51', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:13:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 3 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 43ms (ActiveRecord: 5.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:13:51 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21e041806a51b06f4e3ead0431a36a59' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '21e041806a51b06f4e3ead0431a36a59', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 16:13:51', '2016-08-23 16:13:51')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (0.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[35mSQL (11.2ms)[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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 59ms (ActiveRecord: 8.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:13:51 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ea4a3455421446cafaa533ddce0be69' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3ea4a3455421446cafaa533ddce0be69', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 16:13:51', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 29ms (ActiveRecord: 3.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:13:51 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '83f4bb8e70458c0e444b38e3de75250c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '83f4bb8e70458c0e444b38e3de75250c', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:13:51', '2016-08-23 16:13:51')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (0.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 (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 34ms (ActiveRecord: 3.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:13:51 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3df592f9e2e0b54240921ceb031eb594' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3df592f9e2e0b54240921ceb031eb594', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:13:51', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.5ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 2.8ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3187be0a610af6bcde9a809c4e867849' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3187be0a610af6bcde9a809c4e867849', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'test_holding', 'holding', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:13:51', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3d39aabbd36fa993b1342098ccd817de' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3d39aabbd36fa993b1342098ccd817de', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'test_holding', 'holding', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:13:51', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb5d1fd20868c52f6612b3180236f71f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:13:51')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'cb5d1fd20868c52f6612b3180236f71f', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 12, 'test_holding', 'holding', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:13:51', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[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`
Rendered text template (0.0ms)
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 (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7dee099015a7c80e382a94ccee43010b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:13:51')[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7dee099015a7c80e382a94ccee43010b', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:13:51')
[1m[36m (4.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 13
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 13\n', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
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=2016-08-23T12%3A13%3A51-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 1.7ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb49d07f1ac9c297a11ba1491934a3b4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'bb49d07f1ac9c297a11ba1491934a3b4', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:13:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:13:51')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"14"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 14\n', 14, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Redirected to http://test.host/resolve?umlaut.request_id=14&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A13%3A51-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f5af1bd6555a2dc1d94c770493746702' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:13:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f5af1bd6555a2dc1d94c770493746702', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:13:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 15, '2016-08-23 16:13:51', '2016-08-23 16:13:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
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=2016-08-23T12%3A13%3A51-04%3A00&ctx_id=&ctx_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: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 13ms (ActiveRecord: 1.9ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mDispatchedService Load (0.6ms)[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[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:13:51' WHERE `dispatched_services`.`id` = 13[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 17
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49b10cf940193553678345803a4eec41' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '49b10cf940193553678345803a4eec41', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:13:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 16, '2016-08-23 16:13:51', '2016-08-23 16:13:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 1.9ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[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[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80ed6dd00c057b468f88ca53cd298ba8' 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.2ms)[0m [1mBEGIN[0m
[1m[35m (2.5ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:13:51' WHERE `dispatched_services`.`id` = 14[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:13:51')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 16:13:51')
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '80ed6dd00c057b468f88ca53cd298ba8', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:13:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:51')[0m
[1m[35m (0.2ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ccd30e1019b42fd42278135cc676293' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1ccd30e1019b42fd42278135cc676293', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 16:13:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2016-08-23 16:13:51', '2016-08-23 16:13:51')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 9ms (Views: 0.3ms | ActiveRecord: 2.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 http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3811ea6182c957336681d0748546d5ca' 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 (0.3ms)[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.8ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:13:51' WHERE `dispatched_services`.`id` = 15[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:13:51')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 16:13:51')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 23[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3811ea6182c957336681d0748546d5ca', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:51')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
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=2016-08-23T12%3A13%3A51-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16e6567a50b24bd0579fd8bb34b39ce7' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[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, 20, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 20, '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '16e6567a50b24bd0579fd8bb34b39ce7', '62590701c6f35b45309577ef8c8c22b4', 20, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, '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', '2016-08-23 16:13:51')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd51e05fec49d2d6275f02566bc26a776' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 21, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 21, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[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, 21, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 21, '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd51e05fec49d2d6275f02566bc26a776', 'd95884a882a64501650fb8f9deae5104', 21, 'info:sid/google', '0.0.0.0', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, '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', '2016-08-23 16:13:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:13:51', '2016-08-23 16:13:51')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a93dac3325b1756e6b6ca3f905c55c8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 22, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 22, '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 22, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 22, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 22, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 22, '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 22, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 22, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 22, '2016-08-23 16:13:51')[0m
[1m[35m (11.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3a93dac3325b1756e6b6ca3f905c55c8', '06d451b80bf9fe3ce6849a48c98522d7', 22, 'info:sid/google', '0.0.0.0', '2016-08-23 16:13:51')
[1m[36m (5.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-23 16:13:51', '2016-08-23 16:13:51')
[1m[36m (5.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 22 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed7a8f052a29c1756408fb2c8c35a23a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:13:51')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ed7a8f052a29c1756408fb2c8c35a23a', '1f2487b5ab29a0f58587335258d7f8e0', 23, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:13:51')[0m
[1m[35m (5.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 16:13:51', '2016-08-23 16:13:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7fcb014060e842e0698fedb20d9b3f6d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:13:51')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7fcb014060e842e0698fedb20d9b3f6d', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ce1c768de76ca451035cd4fb9d6eea9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2ce1c768de76ca451035cd4fb9d6eea9', '9902a1d22a141a826ae31b1c83cb928c', 25, '0.0.0.0', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c8107234bf98fb9c115596b089c298b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:13:51')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4c8107234bf98fb9c115596b089c298b', '1f2487b5ab29a0f58587335258d7f8e0', 26, '0.0.0.0', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:13:51')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c3c8ac087b55a0d4e132c7681c8838d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:13:51')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 27, '2016-08-23 16:13:51')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4c3c8ac087b55a0d4e132c7681c8838d', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 27, '0.0.0.0', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2bac38dcd38050a7a99cf178ced59912' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:13:51')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:13:51')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2bac38dcd38050a7a99cf178ced59912', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (28, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:13:51')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:13:51', '2016-08-23 16:13:51')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (14.0ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (11.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 (11.8ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (34.3ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (14.2ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (8.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 (11.5ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.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 (10.8ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (11.0ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.0ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.0ms)[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 (10.6ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.7ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.8ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.2ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (11.2ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (8.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 (12.3ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.6ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (11.8ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (8.6ms)[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 (13.6ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (8.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 (12.8ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (11.6ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.6ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (13.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (8.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '783df689da1523898eae0ed2acec0e2d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:14:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:14:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '783df689da1523898eae0ed2acec0e2d', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:14:46')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (1, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:14:46')
[1m[36m (2.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:14:46', '2016-08-23 16:14:46')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c6724603f8ca61fa393bf2264eb6605' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:14:46')
[1m[36mSQL (0.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, 2, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 2, '2016-08-23 16:14:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7c6724603f8ca61fa393bf2264eb6605', '62590701c6f35b45309577ef8c8c22b4', 2, '0.0.0.0', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 16:14:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8cad6be0736fd7de2791e39ba24bc9a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:14:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 3, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 3, '2016-08-23 16:14:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 3, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 3, '2016-08-23 16:14:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 3, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 3, '2016-08-23 16:14:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 3, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 3, '2016-08-23 16:14:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 3, '2016-08-23 16:14:46')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c8cad6be0736fd7de2791e39ba24bc9a', '06d451b80bf9fe3ce6849a48c98522d7', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:14:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:14:46', '2016-08-23 16:14:46')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 3 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7982b81e700ff0ae2f2a66565d46b9dc' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:14:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 4, '2016-08-23 16:14:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 4, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.2ms)[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, '2016-08-23 16:14:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 4, '2016-08-23 16:14:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7982b81e700ff0ae2f2a66565d46b9dc', 'd95884a882a64501650fb8f9deae5104', 4, 'info:sid/google', '0.0.0.0', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:14:46', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29037041b4652a1311ed3f9cda2b843c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:14:46')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '29037041b4652a1311ed3f9cda2b843c', '1f2487b5ab29a0f58587335258d7f8e0', 5, '0.0.0.0', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10c5e9ff14599b0ceaa5744d264bb096' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:14:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2016-08-23 16:14:46')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '10c5e9ff14599b0ceaa5744d264bb096', '1f2487b5ab29a0f58587335258d7f8e0', 6, '0.0.0.0', '2016-08-23 16:14:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:14:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29ab99160ce17eb05f8025a90cb24057' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:14:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 7, '2016-08-23 16:14:46')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '29ab99160ce17eb05f8025a90cb24057', '9902a1d22a141a826ae31b1c83cb928c', 7, '0.0.0.0', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:14:46')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea59f981ba026fe9d47bbbf14f5c47c4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:14:46')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 8, '2016-08-23 16:14:46')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ea59f981ba026fe9d47bbbf14f5c47c4', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 8, '0.0.0.0', '2016-08-23 16:14:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:14:46')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:14:46 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '92b9111ad4bd482800a7eb59380f08c0' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:46')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:14:46')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:14:46')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '92b9111ad4bd482800a7eb59380f08c0', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 9, '2016-08-23 16:14:46', '2016-08-23 16:14:46')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:14:46')[0m
[1m[35m (0.7ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:14:46' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[36mDispatchedService Load (3.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mReferent Load (2.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.6ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (58.0ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (6.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 321ms (Views: 248.8ms | ActiveRecord: 8.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:14:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8060d12ec89313ce7cf55620f04a4f77' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 10, '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 10, '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8060d12ec89313ce7cf55620f04a4f77', 'a03fb1fb17f24f5ea845bf6c4450490b', 10, '127.0.0.1', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:14:47', '2016-08-23 16:14:47')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22some+book%22', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:14:47' WHERE `dispatched_services`.`id` = 5
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 47ms (Views: 14.8ms | ActiveRecord: 7.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 2016-08-23 12:14:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '61e981753271a92a02994c58e74b91e2' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 11, '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 11, '2016-08-23 16:14:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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?genre=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '61e981753271a92a02994c58e74b91e2', 'bc13b80c2923ce2cbe0c8347141587a7', 11, '127.0.0.1', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 16:14:47', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:14:47' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 37ms (Views: 12.0ms | ActiveRecord: 5.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd511f0f9e28624708287d4658801a1f' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:14:47')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 12, '2016-08-23 16:14:47')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'bd511f0f9e28624708287d4658801a1f', '318e542032e1812e600e07efbdb1dfcc', 12, '0.0.0.0', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 12, '2016-08-23 16:14:47', '2016-08-23 16:14:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=12" for 127.0.0.1 at 2016-08-23 12:14:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"12"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.1ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 20ms (Views: 11.7ms | ActiveRecord: 3.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:14:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '40ed556c0b613e7d08b5ecb378facf71' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '40ed556c0b613e7d08b5ecb378facf71', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:14:47', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 3 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 3.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:14:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43e499e4ed6a1a737ed224d4d9cab7b8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2016-08-23 16:14:47')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '43e499e4ed6a1a737ed224d4d9cab7b8', '9902a1d22a141a826ae31b1c83cb928c', 14, '127.0.0.1', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:14:47', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 26ms (ActiveRecord: 3.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:14:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c82afde9af68207ae30fa8983f162009' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c82afde9af68207ae30fa8983f162009', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:14:47', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 3.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:14:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c978412700a924de3e13a76b4ae8471' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:14:47')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1c978412700a924de3e13a76b4ae8471', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:14:47', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 26ms (ActiveRecord: 3.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:14:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbdc72452b368af17a92c69adfdeffd4' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:14:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'bbdc72452b368af17a92c69adfdeffd4', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:14:47', '2016-08-23 16:14:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:14:47')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 3.2ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3d0a692c74a4057d3ce9924157f32c79' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3d0a692c74a4057d3ce9924157f32c79', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:14:47', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c38270f0c865422f486b5a6a3613c437' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 16:14:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c38270f0c865422f486b5a6a3613c437', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 19\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:14:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T12%3A14%3A47-04%3A00&ctx_id=&ctx_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 9ms (ActiveRecord: 1.7ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b853bd72eadfec7f4f103f09377f8497' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b853bd72eadfec7f4f103f09377f8497', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 16:14:47')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:14:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[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 18
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 18\n', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A14%3A47-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '502d7ee255809e9a5f5dff25c4aeebab' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 16:14:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '502d7ee255809e9a5f5dff25c4aeebab', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 16:14:47')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:14:47')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2016-08-23 16:14:47', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T12%3A14%3A47-04%3A00&ctx_id=&ctx_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: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 13ms (ActiveRecord: 2.5ms)
[1m[35mDispatchedService Load (0.6ms)[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[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:14:47' WHERE `dispatched_services`.`id` = 14
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21[0m
[1m[35m (0.4ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45c1afe6c52c0b6edf5171e5f70aefa3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:14:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '45c1afe6c52c0b6edf5171e5f70aefa3', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 22, '2016-08-23 16:14:47', '2016-08-23 16:14:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.5ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '931c259cd2d5b69a3566459412adb002' 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 (0.4ms)[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 (1.8ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:14:47' WHERE `dispatched_services`.`id` = 15[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:14:47')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:14:47')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 23[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', '931c259cd2d5b69a3566459412adb002', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:14:47')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eec5ade15d1982096bda1d6e385e00f3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'eec5ade15d1982096bda1d6e385e00f3', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 16:14:47', '2016-08-23 16:14:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:14:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 9ms (Views: 0.2ms | ActiveRecord: 2.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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b117b38c2faec971380a3e4f1fe4d6d6' 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 (0.4ms)[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 (1.9ms)[0m [1mBEGIN[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:14:47' WHERE `dispatched_services`.`id` = 16
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:14:47')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 16:14:47')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.7ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.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', 'b117b38c2faec971380a3e4f1fe4d6d6', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
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=2016-08-23T12%3A14%3A47-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d8f8910dc25495f3be5e79cb4801f73' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2d8f8910dc25495f3be5e79cb4801f73', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 16:14:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:14:47', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63c30ad25c7bd9710e35d34f6885eaf5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:14:47')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 16:14:47')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '63c30ad25c7bd9710e35d34f6885eaf5', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'test_holding', 'holding', '2016-08-23 16:14:47')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:14:47', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2eca3e79898fafcb5867e53d97b73411' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:14:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:14:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:14:47')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2eca3e79898fafcb5867e53d97b73411', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:14:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 28, 'test_holding', 'holding', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:14:47', '2016-08-23 16:14:47')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (15.2ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (8.5ms)[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 (14.4ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (19.3ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.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 (12.8ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.8ms)[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 (33.1ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (11.3ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.6ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.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 (12.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (10.5ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (14.5ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.6ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (14.1ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.3ms)[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 (10.4ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (14.0ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.8ms)[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 (11.5ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (14.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 (9.4ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (11.2ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (39.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (11.0ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (10.0ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (7.8ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (11.0ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94bfd59c830c7fae91d16aca6ca1d2c4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:14:58')
[1m[36mSQL (0.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, 1, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 1, '2016-08-23 16:14:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '94bfd59c830c7fae91d16aca6ca1d2c4', '62590701c6f35b45309577ef8c8c22b4', 1, '0.0.0.0', '2016-08-23 16:14:58')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 16:14:58')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc2ff5d3cedf4ab41dff05607e17312a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:14:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 2, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 2, '2016-08-23 16:14:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 2, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 2, '2016-08-23 16:14:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 2, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 2, '2016-08-23 16:14:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 2, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 2, '2016-08-23 16:14:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 2, '2016-08-23 16:14:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'dc2ff5d3cedf4ab41dff05607e17312a', '06d451b80bf9fe3ce6849a48c98522d7', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:14:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:14:58', '2016-08-23 16:14:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mServiceResponse Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 2 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66ccd06942fbf8c49d223ecbb5a6b214' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:14:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 3, '2016-08-23 16:14:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 3, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[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, 3, '2016-08-23 16:14:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 3, '2016-08-23 16:14:58')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '66ccd06942fbf8c49d223ecbb5a6b214', 'd95884a882a64501650fb8f9deae5104', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:14:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:14:58')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:14:58', '2016-08-23 16:14:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b7dd63bd5cc945e3e46d4678d1ec83b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:58')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 4, '2016-08-23 16:14:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 4, '2016-08-23 16:14:58')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9b7dd63bd5cc945e3e46d4678d1ec83b', 'e7e9149c1fdfcd3be6736b651a0064bb', 4, '0.0.0.0', '2016-08-23 16:14:58')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 4, 'test_holding', 'holding', '2016-08-23 16:14:58')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:14:58', '2016-08-23 16:14:58')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7addcd283ab3611de2f00154698615bd' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:14:58')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 5, '2016-08-23 16:14:58')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 5, '2016-08-23 16:14:58')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '7addcd283ab3611de2f00154698615bd', 'e7e9149c1fdfcd3be6736b651a0064bb', 5, '0.0.0.0', '2016-08-23 16:14:58')[0m
[1m[35m (9.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[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', 5, 'test_holding', 'holding', '2016-08-23 16:14:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:14:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:14:59', '2016-08-23 16:14:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a520bc457af50c9598604858e41c419' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:14:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 6, '2016-08-23 16:14:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 6, '2016-08-23 16:14:59')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8a520bc457af50c9598604858e41c419', 'e7e9149c1fdfcd3be6736b651a0064bb', 6, '0.0.0.0', '2016-08-23 16:14:59')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'test_holding', 'holding', '2016-08-23 16:14:59')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:14:59')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 16:14:59', '2016-08-23 16:14:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84feb77f98910de6e55f637d75a8d135' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:59')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:14:59')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:14:59')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '84feb77f98910de6e55f637d75a8d135', '1f2487b5ab29a0f58587335258d7f8e0', 7, '0.0.0.0', '2016-08-23 16:14:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:14:59')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 7, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:15:03')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.5ms)[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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2016-08-23 16:15:03', '2016-08-23 16:15:03')[0m
[1m[35m (5.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8d726c7c28645a5bb8429c31602642a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:03')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:15:03')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:15:03')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'f8d726c7c28645a5bb8429c31602642a', '1f2487b5ab29a0f58587335258d7f8e0', 8, '0.0.0.0', '2016-08-23 16:15:03')[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:15:03')[0m
[1m[35m (0.7ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 8, '2016-08-23 16:15:03', '2016-08-23 16:15:03')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 16:15:03' WHERE `dispatched_services`.`id` = 7
[1m[36m (11.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3d426473895ada017690698b2a31ffb4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:15:03')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:15:03')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 9, '2016-08-23 16:15:03')[0m
[1m[35m (5.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3d426473895ada017690698b2a31ffb4', '9902a1d22a141a826ae31b1c83cb928c', 9, '0.0.0.0', '2016-08-23 16:15:03')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:15:03')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 9, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:15:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 16:15:08', '2016-08-23 16:15:08')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5d3d6933dd430bf0fbec4443500baf5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:15:08')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:15:08')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 10, '2016-08-23 16:15:08')
[1m[36m (11.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd5d3d6933dd430bf0fbec4443500baf5', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 10, '0.0.0.0', '2016-08-23 16:15:08')[0m
[1m[35m (4.6ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:15:08')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 10, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:15:12')
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:15:12', '2016-08-23 16:15:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c58c54d28a7393fe0a5ce29be2aa2cf8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:15:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:15:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 16:15:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 16:15:12')
[1m[36m (12.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'c58c54d28a7393fe0a5ce29be2aa2cf8', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 16:15:12')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (11, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:15:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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%22title%22', '2016-08-23 16:15:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:15:12', '2016-08-23 16:15:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 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.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ff8fc444fa5a2141035ff7e94393f5e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:15:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 16:15:12')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8ff8fc444fa5a2141035ff7e94393f5e', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 16:15:12')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 12
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 12\n', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
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=2016-08-23T12%3A15%3A12-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 1.4ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60bd90cfc9cb8104f1b1522e52ce4042' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:12')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:15:12')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:15:12')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '60bd90cfc9cb8104f1b1522e52ce4042', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:15:12')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:15:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 18
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 18\n', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:12')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
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=2016-08-23T12%3A15%3A12-04%3A00&ctx_id=&ctx_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 17ms (ActiveRecord: 8.0ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17ad4e2b47fda0e9d3d6ae0c8399873f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:12')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:15:12')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:15:12')[0m
[1m[35m (5.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '17ad4e2b47fda0e9d3d6ae0c8399873f', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:15:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:15:12')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 14, '2016-08-23 16:15:12', '2016-08-23 16:15:12')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:15:12')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Redirected to http://test.host/resolve?umlaut.request_id=14&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A15%3A12-04%3A00&ctx_id=&ctx_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 12ms (ActiveRecord: 2.5ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.5ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:15:17' WHERE `dispatched_services`.`id` = 11
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2e1d7acd44f709ee110c386e79fadb3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:15:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:15:17')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e2e1d7acd44f709ee110c386e79fadb3', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 15, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:15:17')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 15, '2016-08-23 16:15:17', '2016-08-23 16:15:17')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Redirected to http://example.org
Completed 302 Found in 15ms (ActiveRecord: 4.7ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c857c612b024c2a1ccb06daea8205658' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c857c612b024c2a1ccb06daea8205658', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 16:15:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:15:17')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:17')[0m
[1m[35m (6.4ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 12ms (ActiveRecord: 7.2ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6ed9bc059189835cbe8040876faed71' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:15:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 16:15:17')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e6ed9bc059189835cbe8040876faed71', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:15:17')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 17, '2016-08-23 16:15:17', '2016-08-23 16:15:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 9ms (Views: 0.3ms | ActiveRecord: 2.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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b77d341f9674cb3f60335ddc2d50ac01' 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 (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:17')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:15:17' WHERE `dispatched_services`.`id` = 13[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:15:17')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 16:15:17')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.7ms)[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[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'b77d341f9674cb3f60335ddc2d50ac01', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A15%3A17-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:15:17 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c02982e3b7f4702ef0fa14b12ac43894' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:15:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:15:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c02982e3b7f4702ef0fa14b12ac43894', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 19, '2016-08-23 16:15:17', '2016-08-23 16:15:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:15:17' WHERE `dispatched_services`.`id` = 14
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[35mDispatchedService Load (3.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36mReferent Load (2.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (57.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (6.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.5ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 303ms (Views: 250.5ms | ActiveRecord: 8.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:15:17 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbd32fae078122122dc91b02ceab266c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:15:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 16:15:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 20, '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 20, '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'bbd32fae078122122dc91b02ceab266c', 'a03fb1fb17f24f5ea845bf6c4450490b', 20, '127.0.0.1', '2016-08-23 16:15:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 16:15:17', '2016-08-23 16:15:17')[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:15:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:17' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 15.7ms | ActiveRecord: 13.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 2016-08-23 12:15:17 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ad447c44d5212e210dfe395f547412b2' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:15:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 21, '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 21, '2016-08-23 16:15:17')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 21, '2016-08-23 16:15:17')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ad447c44d5212e210dfe395f547412b2', 'bc13b80c2923ce2cbe0c8347141587a7', 21, '127.0.0.1', '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:15:17', '2016-08-23 16:15:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:17' WHERE `dispatched_services`.`id` = 16[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 46ms (Views: 14.4ms | ActiveRecord: 5.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '706b73ffc7b0b8423f7b67059e32117f' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 22, '2016-08-23 16:15:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 22, '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 22, '2016-08-23 16:15:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '706b73ffc7b0b8423f7b67059e32117f', '318e542032e1812e600e07efbdb1dfcc', 22, '0.0.0.0', '2016-08-23 16:15:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 22, '2016-08-23 16:15:17', '2016-08-23 16:15:17')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=22" for 127.0.0.1 at 2016-08-23 12:15:17 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"22"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (6.0ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (24.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.5ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 40ms (Views: 26.7ms | ActiveRecord: 4.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:15:17 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3870a383324b0fea526e307e9f5f798c' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:17')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:15:17')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:15:17')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3870a383324b0fea526e307e9f5f798c', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:15:17')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 16:15:17', '2016-08-23 16:15:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 18 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:15:17')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.5ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:15:21' WHERE `dispatched_services`.`id` = 12
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 23[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 23, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:15:22')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:22' WHERE `dispatched_services`.`id` = 18
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 [["id", 23]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (25.8ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 4384ms (Views: 26.8ms | ActiveRecord: 7.2ms)
Started GET "/borrow_direct/BorrowDirect/23?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:15:22 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:15:22' WHERE `dispatched_services`.`id` = 18[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
Redirected to http://www.example.com/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=2016-08-23T12%3A15%3A22-04%3A00&ctx_id=&ctx_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 16ms (ActiveRecord: 3.0ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN003: Authentication failed [NCIP_MSG: User Unknown - EZB]\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:15:23' WHERE `dispatched_services`.`id` = 18
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 33[0m
[1m[35m (0.3ms)[0m COMMIT
Started GET "/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=2016-08-23T12%3A15%3A22-04%3A00&ctx_id=&ctx_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 2016-08-23 12:15:23 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"23", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:15:22-04: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.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 27ms (Views: 16.1ms | ActiveRecord: 4.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:15:23 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9daf5e081756e9d5d1693d6846b14d97' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:15:23')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:15:23')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 24, '2016-08-23 16:15:23')[0m
[1m[35m (6.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9daf5e081756e9d5d1693d6846b14d97', '9902a1d22a141a826ae31b1c83cb928c', 24, '127.0.0.1', '2016-08-23 16:15:23')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:15:23', '2016-08-23 16:15:23')
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (6.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:15:23')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:15:28')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:28' WHERE `dispatched_services`.`id` = 19[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.7ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 4520ms (Views: 13.8ms | ActiveRecord: 18.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:15:28 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e6b2e3396f0140cb8788e069b7e8ac3' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:28')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:15:28')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:15:28')[0m
[1m[35m (9.9ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.9ms)[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', '5e6b2e3396f0140cb8788e069b7e8ac3', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 16:15:28')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:15:28', '2016-08-23 16:15:28')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 20 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:15:28')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 25, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:15:32')[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:32' WHERE `dispatched_services`.`id` = 20[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1[0m [["id", 25]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (9.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.7ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 4663ms (Views: 17.3ms | ActiveRecord: 25.7ms)
Started GET "/borrow_direct/BorrowDirect/25?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:15:32 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:15:32' WHERE `dispatched_services`.`id` = 20
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:15:32')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://www.example.com/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=2016-08-23T12%3A15%3A32-04%3A00&ctx_id=&ctx_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 12ms (ActiveRecord: 2.5ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `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[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:37' WHERE `dispatched_services`.`id` = 20[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000419\n' WHERE `service_responses`.`id` = 38
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Started GET "/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=2016-08-23T12%3A15%3A32-04%3A00&ctx_id=&ctx_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 2016-08-23 12:15:38 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"25", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:15:32-04: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.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.4ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 22ms (Views: 12.2ms | ActiveRecord: 3.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:15:38 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04ec62b66dca6d661cb48f0cf6d02442' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:38')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:15:38')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:15:38')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '04ec62b66dca6d661cb48f0cf6d02442', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 16:15:38')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 26, '2016-08-23 16:15:38', '2016-08-23 16:15:38')[0m
[1m[35m (6.3ms)[0m COMMIT
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:15:38')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 26, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:15:43')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:43' WHERE `dispatched_services`.`id` = 21
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 [["id", 26]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 26
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 5099ms (Views: 16.4ms | ActiveRecord: 24.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:15:43 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '349e3c60eb2f72b7e8b96672b2ac3fc9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:43')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:15:43')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 16:15:43')[0m
[1m[35m (6.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '349e3c60eb2f72b7e8b96672b2ac3fc9', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 16:15:43')
[1m[36m (5.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 27, '2016-08-23 16:15:43', '2016-08-23 16:15:43')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`id` = 22 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:15:43')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 27, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:15:47')[0m
[1m[35m (2.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:47' WHERE `dispatched_services`.`id` = 22[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1[0m [["id", 27]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 4577ms (Views: 18.2ms | ActiveRecord: 16.6ms)
Started GET "/borrow_direct/BorrowDirect/27" for 127.0.0.1 at 2016-08-23 12:15:47 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"27"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:47')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)
Redirected to http://www.example.com/resolve?umlaut.request_id=27&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A15%3A47-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 2.0ms)
Started GET "/resolve?umlaut.request_id=27&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A15%3A47-04%3A00&ctx_id=&ctx_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 2016-08-23 12:15:47 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"27", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:15:47-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1[0m [["id", 27]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.3ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 22ms (Views: 13.7ms | ActiveRecord: 3.5ms)
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b99dcf040c9938b39271162ef972372' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:47')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:15:47')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:15:47')
[1m[36m (5.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2b99dcf040c9938b39271162ef972372', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:15:47')[0m
[1m[35m (10.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:15:47')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:15:47', '2016-08-23 16:15:47')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (17.0ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (6.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (18.3ms)[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 (15.5ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (19.2ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (13.8ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (11.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (8.7ms)[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 (10.1ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.2ms)[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 (35.2ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.8ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (13.9ms)[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 (34.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.4ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (11.6ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (18.4ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (11.5ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (8.3ms)[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 (11.1ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (11.2ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.7ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (10.0ms)[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 (12.5ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (13.3ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.4ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (12.3ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.2ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.1ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (10.8ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.6ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (38.0ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.9ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '061fbcbbc35dd3a1af69996f2cea16de' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:16:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '061fbcbbc35dd3a1af69996f2cea16de', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:16:09')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 1, 'test_holding', 'holding', '2016-08-23 16:16:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:16:09')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:16:09', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eed5d8e13e98a169623b8a46e8bf4d25' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:16:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'eed5d8e13e98a169623b8a46e8bf4d25', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[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', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:16:09', '2016-08-23 16:16:09')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f4b59a46ff18e24d53630422fc07df0d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:16:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2016-08-23 16:16:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f4b59a46ff18e24d53630422fc07df0d', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:16:09', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[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 13ms (Views: 6.1ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24985c1101521a1aff698190758b0c5f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:16:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '24985c1101521a1aff698190758b0c5f', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"4"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 4
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 4\n', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
Redirected to http://test.host/resolve?umlaut.request_id=4&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T12%3A16%3A09-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 1.4ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4a256ef3b26d0abc69683b2dd564575' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:16:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:16:09')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'b4a256ef3b26d0abc69683b2dd564575', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:16:09')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 7\n', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Redirected to http://test.host/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=2016-08-23T12%3A16%3A09-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd05036b75002d71423177bfb3640221' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:16:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'bd05036b75002d71423177bfb3640221', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:16:09')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:16:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:16:09', '2016-08-23 16:16:09')
[1m[36m (5.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:09')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Redirected to http://test.host/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=2016-08-23T12%3A16%3A09-04%3A00&ctx_id=&ctx_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 29ms (ActiveRecord: 14.4ms)
[1m[36mDispatchedService Load (5.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Problem"=>{"ErrorMessage"=>"No result", "ErrorCode"=>"PUBRI003"}}. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:95:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'Can not request for: {:isbn=>\"121212\"}: {\"Problem\"=>{\"ErrorMessage\"=>\"No\n result\", \"ErrorCode\"=>\"PUBRI003\"}}\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:95:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:16:09' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8ce63f07760f7134740e6f3a0484a12' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f8ce63f07760f7134740e6f3a0484a12', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 7, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 7, '2016-08-23 16:16:09', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Redirected to http://example.org
Completed 302 Found in 13ms (ActiveRecord: 4.7ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (0.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '452418626f7dce07b6f46b6ef21c9a8e' 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 (0.5ms)[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 (2.1ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:16:09' WHERE `dispatched_services`.`id` = 5
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:16:09')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 16:16:09')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', '452418626f7dce07b6f46b6ef21c9a8e', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 8, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c0d89fe1d6f51457a9bc9dda1a806e1c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:16:09')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 16:16:09')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c0d89fe1d6f51457a9bc9dda1a806e1c', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 16:16:09')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 9, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:16:09')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 9, '2016-08-23 16:16:09', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:09')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 2.6ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69ba94ef638ae50205f353fc1675d5bd' 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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=","PartnershipId":"DEMO","UserGroup":"patron","LibrarySymbol":"NYU","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mDispatchedService Load (1.8ms)[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 (2.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"7Doi44BPTgzJlAf9EgdfLrPldbTf2IAEVskhJHiZg1OAo8npTU4=\",\"PartnershipId\":\"DEMO\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"NYU\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:16:09' WHERE `dispatched_services`.`id` = 6
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:16:09')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 16
[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', '69ba94ef638ae50205f353fc1675d5bd', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:16:09')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
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=2016-08-23T12%3A16%3A09-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7cda6bf9fafc789324089e4630e92b14' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:16:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 11, '2016-08-23 16:16:09')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7cda6bf9fafc789324089e4630e92b14', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 11, '0.0.0.0', '2016-08-23 16:16:09')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:16:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 11, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:16:09')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:16:09', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '946007fb6794109f6f920a1d33f2ac3e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:16:09')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '946007fb6794109f6f920a1d33f2ac3e', '1f2487b5ab29a0f58587335258d7f8e0', 12, '0.0.0.0', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.3ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 12, '2016-08-23 16:16:09', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAZ006: Invalid API key\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:107:in\n `block (3 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:204:in\n `capture_exceptions\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:104:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:255:in\n `time_it\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:103:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:275:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest/test.rb:102:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:799:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:322:in\n `run_one_method\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:310:in\n `block (2 levels) in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:309:in\n `block in run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:348:in\n `on_signal\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:335:in\n `with_info_handler\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:308:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `block in __run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `map\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:158:in\n `__run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:135:in\n `run\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.9.0/lib/minitest.rb:62:in\n `block in autorun\'\"\n', `updated_at` = '2016-08-23 16:16:09' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0dd09f89ff3dae732dc7f0b28fddd858' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:16:09')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:16:09')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0dd09f89ff3dae732dc7f0b28fddd858', '1f2487b5ab29a0f58587335258d7f8e0', 13, '0.0.0.0', '2016-08-23 16:16:09')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:16:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 13, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:16:09')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 16:16:09', '2016-08-23 16:16:09')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba32e46cafc0df022086b6e2ed66eaf1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:16:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2016-08-23 16:16:09')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ba32e46cafc0df022086b6e2ed66eaf1', '9902a1d22a141a826ae31b1c83cb928c', 14, '0.0.0.0', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 14, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:16:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 16:16:09', '2016-08-23 16:16:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:16:09 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '91cfbaf26f98cd44c1f5b3d5a5773164' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:09')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:16:09')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:16:09')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '91cfbaf26f98cd44c1f5b3d5a5773164', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:16:09')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 15, '2016-08-23 16:16:10', '2016-08-23 16:16:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:16:10')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 11
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (3.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mReferent Load (2.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.8ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (58.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (9.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 309ms (Views: 256.4ms | ActiveRecord: 9.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '75bd692ae12f003e270986629242671f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:16:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 16, '2016-08-23 16:16:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 16, '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 16, '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '75bd692ae12f003e270986629242671f', 'a03fb1fb17f24f5ea845bf6c4450490b', 16, '127.0.0.1', '2016-08-23 16:16:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:16:10', '2016-08-23 16:16:10')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 16, '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', '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.4ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 47ms (Views: 13.5ms | ActiveRecord: 6.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 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf34e30327ad188ea89d7c66f807da53' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:16:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 17, '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 17, '2016-08-23 16:16:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 17, '2016-08-23 16:16:10')[0m
[1m[35m (5.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'bf34e30327ad188ea89d7c66f807da53', 'bc13b80c2923ce2cbe0c8347141587a7', 17, '127.0.0.1', '2016-08-23 16:16:10')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:16:10', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 13[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.4ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 58ms (Views: 14.3ms | ActiveRecord: 16.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c6046b3d4e03483f1967b831c3f32b7' 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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:16:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 16:16:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 18, '2016-08-23 16:16:10')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6c6046b3d4e03483f1967b831c3f32b7', '318e542032e1812e600e07efbdb1dfcc', 18, '0.0.0.0', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 18, '2016-08-23 16:16:10', '2016-08-23 16:16:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=18" for 127.0.0.1 at 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"18"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 25ms (Views: 15.2ms | ActiveRecord: 3.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fd3564aa31441388884a6ced34983da' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:16:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8fd3564aa31441388884a6ced34983da', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:16:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:16:10', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
[1m[36mServiceResponse Load (0.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/dws/item/available?aid=W34Su6uR18rv0ENwqRcdEMF-2G4
Body: {"PartnershipId":"DEMO","ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 49ms (ActiveRecord: 3.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89be99406e3379ae5d1ebf14e2407e01' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:16:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 20, '2016-08-23 16:16:10')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', '89be99406e3379ae5d1ebf14e2407e01', '9902a1d22a141a826ae31b1c83cb928c', 20, '127.0.0.1', '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 16:16:10', '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 20, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:16:10')
[1m[36m (5.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 16
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.1ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.4ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/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` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (22.8ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 100ms (Views: 23.5ms | ActiveRecord: 7.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0699860fb16d66689bafb34ce67bbe10' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '0699860fb16d66689bafb34ce67bbe10', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:16:10', '2016-08-23 16:16:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 21, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 [["id", 21]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 67ms (Views: 17.2ms | ActiveRecord: 5.5ms)
Started GET "/borrow_direct/BorrowDirect/21?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:16:10 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Redirected to http://www.example.com/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=2016-08-23T12%3A16%3A10-04%3A00&ctx_id=&ctx_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 10ms (ActiveRecord: 2.2ms)
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000419\n' WHERE `service_responses`.`id` = 32[0m
[1m[35m (0.4ms)[0m COMMIT
Started GET "/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=2016-08-23T12%3A16%3A10-04%3A00&ctx_id=&ctx_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 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"21", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:16:10-04: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.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.7ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 23ms (Views: 12.7ms | ActiveRecord: 3.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d2a92df27a5fd254795a932166f5873' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:16:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 22, '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8d2a92df27a5fd254795a932166f5873', '1f2487b5ab29a0f58587335258d7f8e0', 22, '127.0.0.1', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 16:16:10', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`id` = 18 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 22, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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- Main Library\n', 22, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 18[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m [["id", 22]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.5ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 53ms (Views: 14.3ms | ActiveRecord: 5.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4679bcb24b8a53f446fef38eabb266af' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:16:10')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4679bcb24b8a53f446fef38eabb266af', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 16:16:10', '2016-08-23 16:16:10')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:16:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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- Main Library\n', 23, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 19
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 [["id", 23]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (20.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (21.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (21.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (34.5ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 75ms (Views: 18.0ms | ActiveRecord: 23.2ms)
Started GET "/borrow_direct/BorrowDirect/23" for 127.0.0.1 at 2016-08-23 12:16:10 -0400
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
Redirected to http://www.example.com/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=2016-08-23T12%3A16%3A10-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
Started GET "/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=2016-08-23T12%3A16%3A10-04%3A00&ctx_id=&ctx_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 2016-08-23 12:16:10 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"23", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:16:10-04: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.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 [["id", 23]]
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 23ms (Views: 14.2ms | ActiveRecord: 3.6ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0158cde8db0cb3048a48e73e0f06e511' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:16:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 24, '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 24, '2016-08-23 16:16:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '0158cde8db0cb3048a48e73e0f06e511', 'e7e9149c1fdfcd3be6736b651a0064bb', 24, '0.0.0.0', '2016-08-23 16:16:10')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (24, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:16:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 16:16:10', '2016-08-23 16:16:10')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e542bbe2b5e0b1dcf65ce0010d1921f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:16:10')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:16:10')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8e542bbe2b5e0b1dcf65ce0010d1921f', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:16:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 16:16:10', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '25f12a4c5cd771046742b5eaec8cff1a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:16:10')
[1m[36mSQL (0.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, 26, '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2016-08-23 16:16:10')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '25f12a4c5cd771046742b5eaec8cff1a', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2016-08-23 16:16:10')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 16:16:10')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb14b35248f36758b141e19e6c39b77d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:16:10')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:16:11')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2016-08-23 16:16:11')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2016-08-23 16:16:11')
[1m[36mSQL (0.1ms)[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, '2016-08-23 16:16:11')[0m
[1m[35mSQL (0.1ms)[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, '2016-08-23 16:16:11')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2016-08-23 16:16:11')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2016-08-23 16:16:11')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2016-08-23 16:16:11')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2016-08-23 16:16:11')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2016-08-23 16:16:11')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'fb14b35248f36758b141e19e6c39b77d', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 16:16:11')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:16:11', '2016-08-23 16:16:11')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mServiceResponse Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7212544181ecb83648cafa782c64a172' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:16:11')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 16:16:11')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 28, '2016-08-23 16:16:11')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 28, '2016-08-23 16:16:11')[0m
[1m[35mSQL (0.2ms)[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, 28, '2016-08-23 16:16:11')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 28, '2016-08-23 16:16:11')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 28, '2016-08-23 16:16:11')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7212544181ecb83648cafa782c64a172', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 16:16:11')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 28, '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', '2016-08-23 16:16:11')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:16:11', '2016-08-23 16:16:11')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (18.7ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.5ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (9.2ms)[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 (14.5ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (15.3ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (16.0ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (10.9ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.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 (12.3ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (12.8ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (30.5ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.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 (11.8ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (12.8ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.7ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (14.3ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.3ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.5ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (11.0ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.2ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.2ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.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 (11.6ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (40.1ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (11.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (11.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.8ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (10.8ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (12.9ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (9.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (13.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.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 2016-08-23 12:17:53 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea12736241bd84fe89eda00281982cce' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:53')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:17:53')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:17:53')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ea12736241bd84fe89eda00281982cce', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 16:17:53')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 16:17:53', '2016-08-23 16:17:53')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (0.3ms)[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 (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:17:53')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError Request URI must have schema. Possibly add 'http://' to the request URI?. Backtrace:
httpclient (2.8.0) lib/httpclient/session.rb:200:in `get_session'
httpclient (2.8.0) lib/httpclient/session.rb:168:in `query'
httpclient (2.8.0) lib/httpclient.rb:1238:in `do_get_block'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: ArgumentError\n:message: Request URI must have schema. Possibly add \'http://\' to the request URI?\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:200:in\n `get_session\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient/session.rb:168:in\n `query\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1238:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:82:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:17:53' WHERE `dispatched_services`.`id` = 1
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (5.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (3.0ms)
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (56.2ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (23.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 374ms (Views: 241.8ms | ActiveRecord: 15.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:17:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '573829a2260fe82031a514f7877b32f9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2016-08-23 16:17:54')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '573829a2260fe82031a514f7877b32f9', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 16:17:54', '2016-08-23 16:17:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:17:54')[0m
[1m[35m (5.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:17:54' WHERE `dispatched_services`.`id` = 2[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (16.1ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 67ms (Views: 17.7ms | ActiveRecord: 7.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 2016-08-23 12:17:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e1d3002fd298532eabf9aba48b3ee39' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '2e1d3002fd298532eabf9aba48b3ee39', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 16:17:54', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (0.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 (0.5ms)[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[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:17:54' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.3ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 47ms (Views: 14.6ms | ActiveRecord: 6.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ed2abf47f8507fa13e1372eabea7d70' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6ed2abf47f8507fa13e1372eabea7d70', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 16:17:54', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 12:17:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.5ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (17.6ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 31ms (Views: 20.4ms | ActiveRecord: 3.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:17:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7bdb135fcca450dd4f60fe29163ce0eb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:17:54')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7bdb135fcca450dd4f60fe29163ce0eb', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 16:17:54', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 5 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 45ms (ActiveRecord: 3.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:17:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '639ef5dada75b8465df9c84903744dab' 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.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 16:17:54')
[1m[36m (4.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.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=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', '639ef5dada75b8465df9c84903744dab', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 16:17:54', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 47ms (ActiveRecord: 8.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:17:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c61b3ddd785573512cdc83f7b25e22d4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:17:54')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c61b3ddd785573512cdc83f7b25e22d4', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 16:17:54', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 30ms (ActiveRecord: 3.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:17:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8d695ff60792bc47bb6b09d72aeb67d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f8d695ff60792bc47bb6b09d72aeb67d', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:17:54', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 29ms (ActiveRecord: 3.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:17:54 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '247ed37bbdf84e24d305ee71d4975325' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '247ed37bbdf84e24d305ee71d4975325', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:17:54', '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 29ms (ActiveRecord: 3.1ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0ae7b25ca09f3426e4e5614395ca36a' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd0ae7b25ca09f3426e4e5614395ca36a', '1f2487b5ab29a0f58587335258d7f8e0', 10, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:17:54', '2016-08-23 16:17:54')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '348311b16556b225436b533c0b8c1e3e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 11, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 11, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.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, 11, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[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, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 11, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 11, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 11, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 11, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 11, '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '348311b16556b225436b533c0b8c1e3e', '06d451b80bf9fe3ce6849a48c98522d7', 11, 'info:sid/google', '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:17:54', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 11 LIMIT 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ef5a7560f7e6a333ec3bdbc8cf303a8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:17:54')
[1m[36mSQL (0.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, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 12, '2016-08-23 16:17:54')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7ef5a7560f7e6a333ec3bdbc8cf303a8', '62590701c6f35b45309577ef8c8c22b4', 12, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd24c8e11162bd462ee8558fe0ff411e5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 13, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 13, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[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, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 13, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 13, '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd24c8e11162bd462ee8558fe0ff411e5', 'd95884a882a64501650fb8f9deae5104', 13, 'info:sid/google', '0.0.0.0', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 16:17:54')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 16:17:54', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a06e92b5ac9d7ac2929e625377f76ae1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 14, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 14, '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a06e92b5ac9d7ac2929e625377f76ae1', 'e7e9149c1fdfcd3be6736b651a0064bb', 14, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (14, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 16:17:54', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 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.1ms)
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 (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d85ee27657d1f58efab99a0bc5ce99b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:17:54')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '5d85ee27657d1f58efab99a0bc5ce99b', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (10.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 15
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 15\n', 15, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[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=2016-08-23T12%3A17%3A54-04%3A00&ctx_id=&ctx_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 9ms (ActiveRecord: 1.6ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a79a5d6136cfdb198ed8e425161f10f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1a79a5d6136cfdb198ed8e425161f10f', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 16, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 14
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 14\n', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:17:54')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A17%3A54-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.1ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '46d8a7ab61388b577f625160ee8941c4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 16:17:54')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '46d8a7ab61388b577f625160ee8941c4', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 17, '2016-08-23 16:17:54', '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A17%3A54-04%3A00&ctx_id=&ctx_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 12ms (ActiveRecord: 2.4ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mServiceResponse Load (0.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"21142226710882\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:17:54' WHERE `dispatched_services`.`id` = 14
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 17[0m
[1m[35m (0.4ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63d83ced57392cd643dd6b8eea4ba1d4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '63d83ced57392cd643dd6b8eea4ba1d4', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 16:17:54')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2016-08-23 16:17:54', '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.5ms)
---------------------------------------------------------------------------------
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 http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8e669bd95eb789fd1ff4a04e43dc9e1' 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 (0.4ms)[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.8ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:17:54' WHERE `dispatched_services`.`id` = 15[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:17:54')
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 16:17:54')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'c8e669bd95eb789fd1ff4a04e43dc9e1', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 16:17:54')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 19, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c68b57f1fc66eb4d65703ef9542f311' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7c68b57f1fc66eb4d65703ef9542f311', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 20, '2016-08-23 16:17:54', '2016-08-23 16:17:54')
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 10ms (Views: 0.2ms | ActiveRecord: 2.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 http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b9dbc050a18eb54758919f2e9b6c12b3' 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 (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.8ms)[0m [1mBEGIN[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST http://dummy%5Fbd%5Fapi%5Fbase/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:17:54' WHERE `dispatched_services`.`id` = 16
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:17:54')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 16:17:54')
[1m[36mSQL (0.8ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 23[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'b9dbc050a18eb54758919f2e9b6c12b3', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.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=2016-08-23T12%3A17%3A54-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6e0266748edba965e6f82950796c27c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 22, '2016-08-23 16:17:54')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'e6e0266748edba965e6f82950796c27c', '9902a1d22a141a826ae31b1c83cb928c', 22, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a67b2ba68ee7caa6baf4709aec63750' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:17:54')[0m
[1m[35m (5.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9a67b2ba68ee7caa6baf4709aec63750', '1f2487b5ab29a0f58587335258d7f8e0', 23, '0.0.0.0', '2016-08-23 16:17:54')
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '484bd64d06e4062973557f55316db0ad' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 24, '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '484bd64d06e4062973557f55316db0ad', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 24, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:17:54')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f63986575106c4fdbd9d1f7f71bd94d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5f63986575106c4fdbd9d1f7f71bd94d', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c5162e0e18ba9cc3ac209dbfc4128b7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 16:17:54')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2c5162e0e18ba9cc3ac209dbfc4128b7', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[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', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:17:54', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '195a713f0067a74440e4450c706a3efc' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 16:17:54')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '195a713f0067a74440e4450c706a3efc', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'test_holding', 'holding', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:17:54', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b38851149fca98423bf89cabfb6d7de1' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:17:54')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:17:54')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b38851149fca98423bf89cabfb6d7de1', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:17:54')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 28, 'test_holding', 'holding', '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:17:54')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:17:54', '2016-08-23 16:17:54')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (17.3ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (9.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 (10.6ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.7ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (13.1ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (12.6ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.9ms)[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 (10.5ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (12.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (7.9ms)[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 (10.7ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (30.8ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (13.2ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (11.6ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (12.0ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.4ms)[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 (10.8ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (28.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (22.7ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (15.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 (15.8ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (43.8ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (17.1ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (16.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (16.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (14.8ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (15.3ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (15.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (16.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cb477225afa3c34fc429b9ff4145f82' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:21')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:18:21')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:18:21')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8cb477225afa3c34fc429b9ff4145f82', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 16:18:21')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:18:21')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '751a5922051faebc94bc9120c14a4311' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:18:21')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:18:21')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 2, '2016-08-23 16:18:21')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '751a5922051faebc94bc9120c14a4311', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 2, '0.0.0.0', '2016-08-23 16:18:21')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:18:21')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16b2f9b3a10e03b8ee9acc40c7f6af3b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 3, '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '16b2f9b3a10e03b8ee9acc40c7f6af3b', '1f2487b5ab29a0f58587335258d7f8e0', 3, '0.0.0.0', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:18:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2855d99728c13215b5dd08f87bc4792b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 4, '2016-08-23 16:18:22')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2855d99728c13215b5dd08f87bc4792b', '9902a1d22a141a826ae31b1c83cb928c', 4, '0.0.0.0', '2016-08-23 16:18:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd470ef064363283724527e0a398844aa' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 5, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 5, '2016-08-23 16:18:22')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd470ef064363283724527e0a398844aa', 'e7e9149c1fdfcd3be6736b651a0064bb', 5, '0.0.0.0', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 5, 'test_holding', 'holding', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:18:22', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '361683b640c3d043457fcad6f56e09bc' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 6, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 6, '2016-08-23 16:18:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '361683b640c3d043457fcad6f56e09bc', 'e7e9149c1fdfcd3be6736b651a0064bb', 6, '0.0.0.0', '2016-08-23 16:18:22')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 6, 'test_holding', 'holding', '2016-08-23 16:18:22')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:18:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 16:18:22', '2016-08-23 16:18:22')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9d0e88938718b3f32afc2cd8af22572' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 7, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 7, '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd9d0e88938718b3f32afc2cd8af22572', 'e7e9149c1fdfcd3be6736b651a0064bb', 7, '0.0.0.0', '2016-08-23 16:18:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 7, 'test_holding', 'holding', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2016-08-23 16:18:22', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a6d059e6f39c2b3d23fd4c613b24edc7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:18:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a6d059e6f39c2b3d23fd4c613b24edc7', '1f2487b5ab29a0f58587335258d7f8e0', 8, '0.0.0.0', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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 (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:18:22', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:18:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8568f3017e94eed2a6b492fb44789d88' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:18:22')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '8568f3017e94eed2a6b492fb44789d88', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 9, '2016-08-23 16:18:22', '2016-08-23 16:18:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:18:22')[0m
[1m[35m (0.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:18:22' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[36mDispatchedService Load (3.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mReferent Load (1.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.3ms)
[1m[35mServiceResponse Load (0.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (54.1ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 324ms (Views: 260.2ms | ActiveRecord: 9.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:18:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'badd296f29a069d5f1969ed71943d46f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 10, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 10, '2016-08-23 16:18:22')[0m
[1m[35m (11.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'badd296f29a069d5f1969ed71943d46f', 'a03fb1fb17f24f5ea845bf6c4450490b', 10, '127.0.0.1', '2016-08-23 16:18:22')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:18:22', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)
[1m[36mDispatchedService Load (0.2ms)[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 (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22some+book%22', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:18:22' WHERE `dispatched_services`.`id` = 6
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 67ms (Views: 15.9ms | ActiveRecord: 24.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 2016-08-23 12:18:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49c2fa2d98ee3677799918204b1cf354' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 11, '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 11, '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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?genre=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '49c2fa2d98ee3677799918204b1cf354', 'bc13b80c2923ce2cbe0c8347141587a7', 11, '127.0.0.1', '2016-08-23 16:18:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 16:18:22', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:18:22' WHERE `dispatched_services`.`id` = 7
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.6ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 41ms (Views: 12.8ms | ActiveRecord: 5.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d94331d9ab4cbf15667f60b503f4d4d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 12, '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0d94331d9ab4cbf15667f60b503f4d4d', '318e542032e1812e600e07efbdb1dfcc', 12, '0.0.0.0', '2016-08-23 16:18:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 12, '2016-08-23 16:18:22', '2016-08-23 16:18:22')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=12" for 127.0.0.1 at 2016-08-23 12:18:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"12"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 24ms (Views: 14.2ms | ActiveRecord: 3.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:18:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74659ac28b2f4a8ed7a7d73a794ac23c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '74659ac28b2f4a8ed7a7d73a794ac23c', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:18:22', '2016-08-23 16:18:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 5 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 30ms (ActiveRecord: 3.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:18:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f8e34877c3d2533b6c817a68dbcb829' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2016-08-23 16:18:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1f8e34877c3d2533b6c817a68dbcb829', '9902a1d22a141a826ae31b1c83cb928c', 14, '127.0.0.1', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:18:22', '2016-08-23 16:18:22')
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (0.2ms)[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 (6.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 41ms (ActiveRecord: 8.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:18:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '00c7d3d5de22b71f5d2e15c72bf53add' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:18:22')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '00c7d3d5de22b71f5d2e15c72bf53add', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:18:22', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 3.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:18:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab487588ca58da2a74d54a7cf031fdff' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ab487588ca58da2a74d54a7cf031fdff', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:18:22', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)
[1m[36mDispatchedService Load (0.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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:18:22')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 26ms (ActiveRecord: 3.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:18:22 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85a3ea1703185f999a8586461d40c5c9' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:18:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '85a3ea1703185f999a8586461d40c5c9', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:18:22', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 3.1ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '909413591e9eae2e7bb6e765f1898917' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 18, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 18, '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 18, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 18, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 18, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 18, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 18, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 18, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 18, '2016-08-23 16:18:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '909413591e9eae2e7bb6e765f1898917', '06d451b80bf9fe3ce6849a48c98522d7', 18, 'info:sid/google', '0.0.0.0', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:18:22', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mServiceResponse Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 18 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b315716eaa2295787dbea0e514a9cf7' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 19, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 19, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 19, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[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, 19, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 19, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 19, '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3b315716eaa2295787dbea0e514a9cf7', 'd95884a882a64501650fb8f9deae5104', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 16:18:22')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 16:18:22', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65be7cb56a1884605305748588b6c1e5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[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, 20, '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 20, '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '65be7cb56a1884605305748588b6c1e5', '62590701c6f35b45309577ef8c8c22b4', 20, '0.0.0.0', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3f30865f1b5807638f56eb40539b607' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:18:22')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 16:18:22')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'd3f30865f1b5807638f56eb40539b607', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 16:18:22')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (21, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:18:22', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 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 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a21b5c3e98114b7debca6acab8e40c14' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a21b5c3e98114b7debca6acab8e40c14', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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 22\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T12%3A18%3A22-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '03c0975eb175fd9a49756ed7bca2c6f5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '03c0975eb175fd9a49756ed7bca2c6f5', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:18:22')[0m
[1m[35m (0.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[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 23
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 23\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:18:22')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A18%3A22-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2542fd8d4b71043804cb3d8f7f353855' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:22')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:18:22')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2542fd8d4b71043804cb3d8f7f353855', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 16:18:22', '2016-08-23 16:18:22')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:18:22')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A18%3A22-04%3A00&ctx_id=&ctx_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: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 13ms (ActiveRecord: 2.5ms)
[1m[36mDispatchedService Load (0.7ms)[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[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36m (0.5ms)[0m [1mBEGIN[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"21142226710882\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:18:22' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (12.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26
[1m[36m (5.0ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7256db0d3ebfb584f3797265710c7005' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:23')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:18:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 16:18:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '7256db0d3ebfb584f3797265710c7005', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 16:18:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:18:23')
[1m[36m (0.3ms)[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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 16:18:23', '2016-08-23 16:18:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:18:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.3ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de2eb3cc2e30ba40218a354c3aaf63e0' 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 (0.4ms)[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 (2.0ms)[0m [1mBEGIN[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:23')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:18:23' WHERE `dispatched_services`.`id` = 18
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:18:23')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 16:18:23')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.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', 'de2eb3cc2e30ba40218a354c3aaf63e0', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 16:18:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:18:23')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:18:23')[0m
[1m[35m (0.2ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f9d635527df3e4ddb0dd7561511f307' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:23')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:18:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 16:18:23')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1f9d635527df3e4ddb0dd7561511f307', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 16:18:23')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:18:23')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 16:18:23', '2016-08-23 16:18:23')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:18:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 12ms (Views: 0.3ms | ActiveRecord: 2.2ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '79bc6a35fcde2f61bdc66177b978d137' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:23')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:18:23')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 16:18:23')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '79bc6a35fcde2f61bdc66177b978d137', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 16:18:23')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 28, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:18:23')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A18%3A23-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (16.7ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.3ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (10.5ms)[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 (12.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (14.8ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (36.8ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (10.7ms)[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 (12.7ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.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 (11.5ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (11.4ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (10.8ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.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 (11.3ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (13.2ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.9ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (12.5ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (11.8ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (27.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 (11.4ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (13.1ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (13.0ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.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 (11.3ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (11.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 (9.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 (10.8ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (13.9ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (9.7ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (10.9ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (8.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '058cd1eb29b32dea172c718882bd79a8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '058cd1eb29b32dea172c718882bd79a8', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (1, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:19:15')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:19:15')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:19:15', '2016-08-23 16:19:15')[0m
[1m[35m (5.6ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '28acf3e518b459ac45490b7243978ceb' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '28acf3e518b459ac45490b7243978ceb', '1f2487b5ab29a0f58587335258d7f8e0', 2, '127.0.0.1', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 2, '2016-08-23 16:19:15', '2016-08-23 16:19:15')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:19:15' WHERE `dispatched_services`.`id` = 2
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (3.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mReferent Load (2.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.4ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (2.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (58.2ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 301ms (Views: 235.6ms | ActiveRecord: 8.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:19:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '080acdb778181ae0243f323be9dbe8dd' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 3, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 3, '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '080acdb778181ae0243f323be9dbe8dd', 'a03fb1fb17f24f5ea845bf6c4450490b', 3, '127.0.0.1', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 16:19:15', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mReferent Load (0.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:19:15' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (15.6ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 53ms (Views: 17.5ms | ActiveRecord: 7.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 2016-08-23 12:19:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a196394d2f9869d4c73cb780b031830c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 4, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 4, '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'a196394d2f9869d4c73cb780b031830c', 'bc13b80c2923ce2cbe0c8347141587a7', 4, '127.0.0.1', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 4, '2016-08-23 16:19:15', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (4)[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (4) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (4)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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 (0.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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:19:15' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (6.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (24.5ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 58ms (Views: 27.4ms | ActiveRecord: 5.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0f204ae499ad0c25cb06263c5c082fc' 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.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 5, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 5, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 5, '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e0f204ae499ad0c25cb06263c5c082fc', '318e542032e1812e600e07efbdb1dfcc', 5, '0.0.0.0', '2016-08-23 16:19:15')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 5, '2016-08-23 16:19:15', '2016-08-23 16:19:15')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=5" for 127.0.0.1 at 2016-08-23 12:19:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"5"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (20.1ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 35ms (Views: 23.0ms | ActiveRecord: 4.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6cb852ad87652bbc5970499df06a6490' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6cb852ad87652bbc5970499df06a6490', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2016-08-23 16:19:15')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 16:19:15', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.6ms)[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=', '2016-08-23 16:19:15')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 5 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 43ms (ActiveRecord: 2.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:19:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf909697ef80a8584cdffaa5a052a440' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 7, '2016-08-23 16:19:15')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'bf909697ef80a8584cdffaa5a052a440', '9902a1d22a141a826ae31b1c83cb928c', 7, '127.0.0.1', '2016-08-23 16:19:15')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 16:19:15', '2016-08-23 16:19:15')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:19:15')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 34ms (ActiveRecord: 2.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b01d02dc1f636920734277a79b918c1c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'b01d02dc1f636920734277a79b918c1c', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:19:15', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (0.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 (0.4ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 28ms (ActiveRecord: 3.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee96785d9db8c711e80f20d5c6617083' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:19:15')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'ee96785d9db8c711e80f20d5c6617083', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:19:15', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (0.2ms)[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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 3.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:15 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '815b4ff130832495cf4f328e078559a0' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '815b4ff130832495cf4f328e078559a0', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:19:15', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.7ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:19:15')[0m
[1m[35m (5.9ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 33ms (ActiveRecord: 3.0ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c28c9a8ce7328e4fa01a1c9805fbda23' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 16:19:15')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'c28c9a8ce7328e4fa01a1c9805fbda23', '1f2487b5ab29a0f58587335258d7f8e0', 11, '0.0.0.0', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:19:15', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e1fc5780ff6cbcf6566d1a47f1bbc96' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '6e1fc5780ff6cbcf6566d1a47f1bbc96', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 12, 'test_holding', 'holding', '2016-08-23 16:19:15')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:19:15', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd43b5068478cc769c8b2f66e17bac2d4' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 13, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 13, '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd43b5068478cc769c8b2f66e17bac2d4', 'e7e9149c1fdfcd3be6736b651a0064bb', 13, '0.0.0.0', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 13, 'test_holding', 'holding', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 16:19:15', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2245e63b7fa9083adaf2066ebf625c0e' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 14, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 14, '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2245e63b7fa9083adaf2066ebf625c0e', 'e7e9149c1fdfcd3be6736b651a0064bb', 14, '0.0.0.0', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'test_holding', 'holding', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=ti%3D%22title%22', '2016-08-23 16:19:15')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 16:19:15', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9faba962526075b81de4033bdbc9a50' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a9faba962526075b81de4033bdbc9a50', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a17cd04bc4fe53d4f1c0ea1c15f4403' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6a17cd04bc4fe53d4f1c0ea1c15f4403', '9902a1d22a141a826ae31b1c83cb928c', 16, '0.0.0.0', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b7adcbfd41dd92ad7e4cfadfe0cb823' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 17, '2016-08-23 16:19:15')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3b7adcbfd41dd92ad7e4cfadfe0cb823', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 17, '0.0.0.0', '2016-08-23 16:19:15')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8be08252ff03e592e8b4fef6f34d149' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'a8be08252ff03e592e8b4fef6f34d149', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f38ab57a20b10c18595129f37e25761d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[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, 19, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 19, '2016-08-23 16:19:15')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'f38ab57a20b10c18595129f37e25761d', '62590701c6f35b45309577ef8c8c22b4', 19, '0.0.0.0', '2016-08-23 16:19:15')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 19, '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', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '082530bf00e5264528483d2b025cfbf5' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 20, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 20, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 20, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 20, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 20, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 20, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 20, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 20, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 20, '2016-08-23 16:19:15')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '082530bf00e5264528483d2b025cfbf5', '06d451b80bf9fe3ce6849a48c98522d7', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 16:19:15')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:19:15', '2016-08-23 16:19:15')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mServiceResponse Exists (0.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 20 LIMIT 1
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b5588893b98e4ddf1170b9ef4c1a975' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:19:15')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 21, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 21, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[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, 21, '2016-08-23 16:19:15')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 16:19:15')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 21, '2016-08-23 16:19:15')[0m
[1m[35m (6.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9b5588893b98e4ddf1170b9ef4c1a975', 'd95884a882a64501650fb8f9deae5104', 21, 'info:sid/google', '0.0.0.0', '2016-08-23 16:19:16')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, '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', '2016-08-23 16:19:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:19:16', '2016-08-23 16:19:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
-----------------------------------------------------------------
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 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (0.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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b01bcd24668a71abc28cb5111dba2e3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:19:16')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:19:16')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4b01bcd24668a71abc28cb5111dba2e3', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:19:16')[0m
[1m[35m (0.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 22
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 22\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A19%3A16-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.5ms)
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c409984fdc1853053d05672be742e421' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:19:16')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:19:16')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c409984fdc1853053d05672be742e421', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:19:16')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:19:16')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 23
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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 23\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:16')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)
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=2016-08-23T12%3A19%3A16-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '20c764184517e6b1708a65e5c64a5eb6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:19:16')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:19:16')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '20c764184517e6b1708a65e5c64a5eb6', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:19:16')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:19:16')[0m
[1m[35m (5.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 16:19:16', '2016-08-23 16:19:16')[0m
[1m[35m (6.1ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:19:16')
[1m[36m (12.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
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=2016-08-23T12%3A19%3A16-04%3A00&ctx_id=&ctx_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 35ms (ActiveRecord: 20.8ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"21142226710882"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"21142226710882\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:19:16' WHERE `dispatched_services`.`id` = 17
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26[0m
[1m[35m (0.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37456df53b78e21cafc16db3e48f198c' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:19:16')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 16:19:16')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '37456df53b78e21cafc16db3e48f198c', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 16:19:16')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:19:16')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 16:19:16', '2016-08-23 16:19:16')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 25, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:16')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
Redirected to http://example.org
Completed 302 Found in 9ms (ActiveRecord: 2.5ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ff113b8cf119046939f9e2a8758f98f0' 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 (0.5ms)[0m [1mSELECT `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[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16')
[1m[36mSQL (0.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:19:16' WHERE `dispatched_services`.`id` = 18[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:19:16')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 16:19:16')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.5ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.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', 'ff113b8cf119046939f9e2a8758f98f0', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 16:19:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:19:16')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd84a59309c96efb49d69958bb53ec65f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:19:16')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 16:19:16')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd84a59309c96efb49d69958bb53ec65f', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 16:19:16')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:19:16')
[1m[36m (0.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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 16:19:16', '2016-08-23 16:19:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:16')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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 9ms (Views: 0.2ms | ActiveRecord: 2.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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"21142226710882"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10cda3d37a55219e92237354ed079f33' 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 (0.4ms)[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 (1.8ms)[0m [1mBEGIN[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16')[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"21142226710882\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:19:16' WHERE `dispatched_services`.`id` = 19
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:19:16')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 16:19:16')[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.7ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.5ms)[0m COMMIT
[1m[36mSQL (0.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', '10cda3d37a55219e92237354ed079f33', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 16:19:16')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:19:16')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A19%3A16-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.2ms)
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (36.2ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (8.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 (12.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (13.2ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (12.1ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (9.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 (10.8ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (9.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 (11.4ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.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 (10.0ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (10.4ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (8.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 (10.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (14.0ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (11.5ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (11.2ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (10.3ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (11.4ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (8.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 (32.5ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (11.7ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (11.6ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (8.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 (11.1ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.9ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (9.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 (10.8ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (12.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (13.1ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (9.9ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (8.3ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (14.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.3ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a84717b8b0ca7c83fbea8ba6cd94763' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:19:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:19:29')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9a84717b8b0ca7c83fbea8ba6cd94763', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 16:19:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:19:29')
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:19:29', '2016-08-23 16:19:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1fb14993a77f7d644a19cd8c947f280b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:19:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 2, '2016-08-23 16:19:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1fb14993a77f7d644a19cd8c947f280b', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 2, '0.0.0.0', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '79e893f181647cca5d479f0b1f5fbf22' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 3, '2016-08-23 16:19:29')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '79e893f181647cca5d479f0b1f5fbf22', '1f2487b5ab29a0f58587335258d7f8e0', 3, '0.0.0.0', '2016-08-23 16:19:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:19:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '884eda7f6019658290e0b19f6f7815d6' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:19:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 16:19:29')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '884eda7f6019658290e0b19f6f7815d6', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:19:29')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a6eb1dcb7265bf616937ec8ee94089c3' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 5, '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a6eb1dcb7265bf616937ec8ee94089c3', '9902a1d22a141a826ae31b1c83cb928c', 5, '0.0.0.0', '2016-08-23 16:19:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:19:29')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3babbbccb1742ccd66e34f9c109c4bfe' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 6, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 6, '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3babbbccb1742ccd66e34f9c109c4bfe', 'e7e9149c1fdfcd3be6736b651a0064bb', 6, '0.0.0.0', '2016-08-23 16:19:29')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (6, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:19:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 16:19:29', '2016-08-23 16:19:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f539aafb959072ec6627ba44985d1330' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:19:29')
[1m[36mSQL (0.2ms)[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, 7, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 7, '2016-08-23 16:19:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'f539aafb959072ec6627ba44985d1330', '62590701c6f35b45309577ef8c8c22b4', 7, '0.0.0.0', '2016-08-23 16:19:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, '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', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf1c90771ba63816b94cdd9915f2018b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 8, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 8, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[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, 8, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 8, '2016-08-23 16:19:29')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'bf1c90771ba63816b94cdd9915f2018b', 'd95884a882a64501650fb8f9deae5104', 8, 'info:sid/google', '0.0.0.0', '2016-08-23 16:19:29')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, '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', '2016-08-23 16:19:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:19:29', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4704ad62b755652acd458bd74be4f588' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 9, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 9, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 9, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 9, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 9, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 9, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 9, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 9, '2016-08-23 16:19:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 9, '2016-08-23 16:19:29')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '4704ad62b755652acd458bd74be4f588', '06d451b80bf9fe3ce6849a48c98522d7', 9, 'info:sid/google', '0.0.0.0', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 16:19:29', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 9 LIMIT 1[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e042f8f57fdb26024a01938b1bdae0bd' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 16:19:29')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 16:19:29')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e042f8f57fdb26024a01938b1bdae0bd', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 10, 'test_holding', 'holding', '2016-08-23 16:19:29')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:19:29', '2016-08-23 16:19:29')
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42b81b358344dc8fa47bdebab24f993a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 16:19:29')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '42b81b358344dc8fa47bdebab24f993a', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 16:19:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'test_holding', 'holding', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:19:29', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3900858f11956a33b83be624d566183d' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:19:29')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3900858f11956a33b83be624d566183d', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:19:29')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[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', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:19:29', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:29 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9360565a106c1a89ad4ea28dea1e9a5' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:29')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:19:29')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:19:29')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e9360565a106c1a89ad4ea28dea1e9a5', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 13, '2016-08-23 16:19:29', '2016-08-23 16:19:29')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=', '2016-08-23 16:19:29')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:19:29' WHERE `dispatched_services`.`id` = 8
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mDispatchedService Load (0.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (3.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mReferent Load (2.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (4.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (3.5ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (10.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (64.9ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (8.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 338ms (Views: 265.5ms | ActiveRecord: 10.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:19:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a596dcc95fb4075b89608b4520be285f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:19:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 14, '2016-08-23 16:19:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 14, '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 14, '2016-08-23 16:19:30')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'a596dcc95fb4075b89608b4520be285f', 'a03fb1fb17f24f5ea845bf6c4450490b', 14, '127.0.0.1', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:19:30', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)[0m
[1m[35mDispatchedService Load (0.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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, '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', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:19:30' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.8ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 49ms (Views: 16.3ms | ActiveRecord: 7.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 2016-08-23 12:19:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '957487483c4694470792755c699d2526' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:19:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 15, '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 15, '2016-08-23 16:19:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 15, '2016-08-23 16:19:30')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '957487483c4694470792755c699d2526', 'bc13b80c2923ce2cbe0c8347141587a7', 15, '127.0.0.1', '2016-08-23 16:19:30')
[1m[36m (11.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:19:30', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35mSQL (0.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `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[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:19:30' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[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/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (10.4ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 61ms (Views: 11.2ms | ActiveRecord: 22.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ff66f784f28758c2a48a9ba433ab7ae6' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 16:19:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 16, '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 16, '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'ff66f784f28758c2a48a9ba433ab7ae6', '318e542032e1812e600e07efbdb1dfcc', 16, '0.0.0.0', '2016-08-23 16:19:30')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 16, '2016-08-23 16:19:30', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=16" for 127.0.0.1 at 2016-08-23 12:19:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"16"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (0.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mDispatchedService Load (0.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.4ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (11.9ms)
[1m[35mPermalink Load (0.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Completed 200 OK in 22ms (Views: 12.9ms | ActiveRecord: 3.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50556d741d19bf311bfc04c58bf8bde9' 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.2ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:19:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '50556d741d19bf311bfc04c58bf8bde9', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:19:30')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:19:30', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 5 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 26ms (ActiveRecord: 3.3ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:19:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b32104507583ba507ee2b1cdcaa06737' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:19:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 18, '2016-08-23 16:19:30')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=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', 'b32104507583ba507ee2b1cdcaa06737', '9902a1d22a141a826ae31b1c83cb928c', 18, '127.0.0.1', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:19:30', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18)[0m
[1m[35mDispatchedService Load (0.3ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 27ms (ActiveRecord: 3.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3abf4d937e3346c45b8320b44032ce27' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:19:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:19:30')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3abf4d937e3346c45b8320b44032ce27', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:19:30', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 28ms (ActiveRecord: 3.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ac36ad9d3496fa932d01fa37667fd184' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'ac36ad9d3496fa932d01fa37667fd184', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:19:30')[0m
[1m[35m (5.7ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 16:19:30', '2016-08-23 16:19:30')[0m
[1m[35m (5.8ms)[0m COMMIT
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:19:30')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 45ms (ActiveRecord: 14.5ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:19:30 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '131a9fab4925ea0da6813ad946b64702' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:19:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 16:19:30')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '131a9fab4925ea0da6813ad946b64702', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:19:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:19:30', '2016-08-23 16:19:30')
[1m[36m (2.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 21, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/validation_error_without_pickup_location.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 28ms (ActiveRecord: 4.4ms)
-----------------------------------------------------------------
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 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3c895644fd1550f62fd90baec741cfde' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:19:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3c895644fd1550f62fd90baec741cfde', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:19:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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 22\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T12%3A19%3A30-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.3ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3cf5952c26bdbf6ba5720884303f576f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:19:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:19:30')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3cf5952c26bdbf6ba5720884303f576f', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:19:30')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[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 23
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 23\n', 23, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:30')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A19%3A30-04%3A00&ctx_id=&ctx_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 8ms (ActiveRecord: 1.6ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c060e6e860119deb9a17dc0977595b48' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:19:30')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'c060e6e860119deb9a17dc0977595b48', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 16:19:30', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 24, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A19%3A30-04%3A00&ctx_id=&ctx_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 13ms (ActiveRecord: 2.3ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:19:30' WHERE `dispatched_services`.`id` = 17[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb0e9bc4e424ddec9a10c9a9669ab21b' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'bb0e9bc4e424ddec9a10c9a9669ab21b', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 16:19:30', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:19:30')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://example.org
Completed 302 Found in 10ms (ActiveRecord: 2.7ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96f21fc8e7507bed309d060fc99b982a' 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 (0.4ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:19:30' WHERE `dispatched_services`.`id` = 18
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:19:30')[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 16:19:30')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.3ms)[0m COMMIT
[1m[36mSQL (0.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', '96f21fc8e7507bed309d060fc99b982a', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 16:19:30')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:19:30')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 26, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:30')[0m
[1m[35m (0.2ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb530f89fb1058fce3868d8159341cad' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:19:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 16:19:30')[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'eb530f89fb1058fce3868d8159341cad', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 16:19:30')
[1m[36m (11.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 27, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:19:30')[0m
[1m[35m (0.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 16:19:30', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 27, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 12ms (Views: 0.3ms | ActiveRecord: 2.3ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a2828e37627ce3a0f09876b255812168' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:19:30')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'a2828e37627ce3a0f09876b255812168', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 16:19:30')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 28, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:19:30')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A19%3A30-04%3A00&ctx_id=&ctx_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 6ms (ActiveRecord: 1.4ms)
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (16.6ms)[0m [1mDROP DATABASE IF EXISTS `dummy_test`[0m
[1m[35m (0.4ms)[0m CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (12.4ms)[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 (13.9ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (19.7ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (15.4ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (8.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 (12.4ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (10.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 (13.6ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (9.6ms)[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 (13.2ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (13.2ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (9.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 (11.8ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (14.0ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (12.8ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (37.5ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (13.2ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (15.0ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (9.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 (12.0ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (12.4ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (12.7ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (9.7ms)[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 (11.0ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (12.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 (9.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 (11.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (11.6ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (10.2ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (12.0ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (15.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (16.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (0.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10ddc8ce85c35dfb512e73f8bd31dd01' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '10ddc8ce85c35dfb512e73f8bd31dd01', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (1, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:20:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 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', '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.3ms)[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[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:20:40', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15e23bc236cf0492233093b6b2790f61' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[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, 2, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 2, '2016-08-23 16:20:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '15e23bc236cf0492233093b6b2790f61', '62590701c6f35b45309577ef8c8c22b4', 2, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f5f2868dbd6a46ccaa03deeed8de5a9' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 3, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 3, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 3, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 3, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 3, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 3, '2016-08-23 16:20:40')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 3, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 3, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 3, '2016-08-23 16:20:40')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '7f5f2868dbd6a46ccaa03deeed8de5a9', '06d451b80bf9fe3ce6849a48c98522d7', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:20:40', '2016-08-23 16:20:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mServiceResponse Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 3 LIMIT 1[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3e408d16b848b2f3ed511887319f389f' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:20:40')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 4, '2016-08-23 16:20:40')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 4, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.1ms)[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, '2016-08-23 16:20:40')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 4, '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '3e408d16b848b2f3ed511887319f389f', 'd95884a882a64501650fb8f9deae5104', 4, 'info:sid/google', '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:20:40', '2016-08-23 16:20:40')[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '740683a591ed9c17236f38e48fd03630' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 5, '2016-08-23 16:20:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '740683a591ed9c17236f38e48fd03630', '9902a1d22a141a826ae31b1c83cb928c', 5, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d4c9809aeaaf8f4a46cd92d1b800255' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:20:40')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '1d4c9809aeaaf8f4a46cd92d1b800255', '1f2487b5ab29a0f58587335258d7f8e0', 6, '0.0.0.0', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '22eb95ff4618c23b1d8408d7a7b02149' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:40')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:20:40')
[1m[36m (12.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', '22eb95ff4618c23b1d8408d7a7b02149', '1f2487b5ab29a0f58587335258d7f8e0', 7, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (5.0ms)[0m COMMIT
[1m[36mServiceResponse Load (0.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 7, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bcce1205e3e1fa119f5d2652d7c51359' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 8, '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'bcce1205e3e1fa119f5d2652d7c51359', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 8, '0.0.0.0', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.1ms)[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`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (0.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 1ms (Views: 0.2ms | ActiveRecord: 0.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f629defabedb94a334dd04e971ff92a' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '3f629defabedb94a334dd04e971ff92a', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.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 9\n', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.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=2016-08-23T12%3A20%3A40-04%3A00&ctx_id=&ctx_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 9ms (ActiveRecord: 1.4ms)
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8bce5d45c7dea4d2127f7d17eb972186' 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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:20:40')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:20:40')[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '8bce5d45c7dea4d2127f7d17eb972186', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 10, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.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 10
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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 10\n', 10, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:20:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A20%3A40-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e68a5282fb84ae4c942cb3775c5e745' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:20:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '5e68a5282fb84ae4c942cb3775c5e745', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 11, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 11, '2016-08-23 16:20:40', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[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=2016-08-23T12%3A20%3A40-04%3A00&ctx_id=&ctx_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: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
Completed 303 See Other in 14ms (ActiveRecord: 2.4ms)
[1m[36mDispatchedService Load (0.7ms)[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 (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n VCR is currently using the following cassette:\n - /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/controller/good_request.yml\n - :record => :once\n - :match_requests_on => [:method, :uri, :body]\n\n Under the current configuration VCR can not find a suitable HTTP interaction\n to replay and is prevented from recording new requests. There are a few ways\n you can deal with this:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * You can use the :new_episodes record mode to allow VCR to\n record this new request to the existing cassette [2].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [3].\n * The current record mode (:once) does not allow new requests to be recorded\n to a previously recorded cassette. You can delete the cassette file and re-run\n your tests to allow the cassette to be recorded with this request [4].\n * The cassette contains 2 HTTP interactions that have not been\n played back. If your request is non-deterministic, you may need to\n change your :match_requests_on cassette option to be more lenient\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] 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] 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:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:20:40' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (6.0ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 13
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aca5646840bbe57b8e8bc33187bb6f24' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 'aca5646840bbe57b8e8bc33187bb6f24', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:20:40')
[1m[36m (0.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 (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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 (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 12, '2016-08-23 16:20:40', '2016-08-23 16:20:40')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Redirected to http://example.org
Completed 302 Found in 13ms (ActiveRecord: 4.7ms)
---------------------------------------------------------------------------------
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://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ee57f26ccf9624dcef3bc1c3a6fb1d2' 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 (0.4ms)[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 (2.1ms)[0m [1mBEGIN[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: |2+\n\n\n ================================================================================\n An HTTP request has been made that VCR does not know how to handle:\n POST https://demo.relais-host.com/portal-service/user/authentication\n Body: {\"ApiKey\":\"DUMMY_BD_API_KEY\",\"PartnershipId\":\"DUMMY_BD_PARTNERSHIP_ID\",\"UserGroup\":\"patron\",\"LibrarySymbol\":\"DUMMY_BD_LIBRARY_SYMBOL\",\"PatronId\":\"DUMMY_BD_PATRON\"}\n\n There is currently no cassette in use. There are a few ways\n you can configure VCR to handle this request:\n\n * If you\'re surprised VCR is raising this error\n and want insight about how VCR attempted to handle the request,\n you can use the debug_logger configuration option to log more details [1].\n * If you want VCR to record this request and play it back during future test\n runs, you should wrap your test (or this portion of your test) in a\n `VCR.use_cassette` block [2].\n * If you only want VCR to handle requests made while a cassette is in use,\n configure `allow_http_connections_when_no_cassette = true`. VCR will\n ignore this request since it is made when there is no cassette [3].\n * If you want VCR to ignore this request (and others like it), you can\n set an `ignore_request` callback [4].\n\n [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\n [2] 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] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\n ================================================================================\n\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/request_pattern.rb:36:in\n `matches?\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `each\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `detect\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in\n `block in webmock_responses\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in\n `do_get\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get_block\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1021:in\n `block in do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1129:in\n `protect_keep_alive_disconnected\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:1016:in\n `do_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:858:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.0/lib/httpclient.rb:761:in\n `post\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:77:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:20:40' WHERE `dispatched_services`.`id` = 5
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:20:40')[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:20:40')[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
[1m[35mSQL (0.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 15
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mSQL (0.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', '6ee57f26ccf9624dcef3bc1c3a6fb1d2', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 13, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5045e5a24edd92c376930dc5f2518e3b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '5045e5a24edd92c376930dc5f2518e3b', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:20:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 14, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[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 (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 14, '2016-08-23 16:20:40', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 14, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 13ms (Views: 0.4ms | ActiveRecord: 2.2ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '860dd3de050872fdc41da9809c564578' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '860dd3de050872fdc41da9809c564578', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '2016-08-23 16:20:40')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[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=2016-08-23T12%3A20%3A40-04%3A00&ctx_id=&ctx_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 7ms (ActiveRecord: 1.4ms)
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6fab19c71608a91fa353edbea7e45e1' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 16, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 16, '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 'e6fab19c71608a91fa353edbea7e45e1', 'e7e9149c1fdfcd3be6736b651a0064bb', 16, '0.0.0.0', '2016-08-23 16:20:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (7.4ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 16, 'test_holding', 'holding', '2016-08-23 16:20:40')[0m
[1m[35m (6.4ms)[0m COMMIT
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 16:20:40', '2016-08-23 16:20:40')
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69e64950b2087d5964485b947e675ca8' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 17, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 17, '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '69e64950b2087d5964485b947e675ca8', 'e7e9149c1fdfcd3be6736b651a0064bb', 17, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'test_holding', 'holding', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2016-08-23 16:20:40')
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 16:20:40', '2016-08-23 16:20:40')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a4e4af40ce4285e576a872f5b7bba2b' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2016-08-23 16:20:40')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '1a4e4af40ce4285e576a872f5b7bba2b', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2016-08-23 16:20:40')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 18, 'test_holding', 'holding', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 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', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:20:40', '2016-08-23 16:20:40')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:20:40 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6cb1f0e0e2680258114e6b773159a9f0' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:40')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:20:40')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:20:40')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '6cb1f0e0e2680258114e6b773159a9f0', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:20:41')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 19, '2016-08-23 16:20:41', '2016-08-23 16:20:41')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (12.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2016-08-23 16:20:41')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url:
* Posted with json payload:
[1m[35mDispatchedService Load (0.3ms)[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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[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://demo.relais-host.com\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:116:in\n `rescue in request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:63:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:61:in\n `find_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/find_item.rb:70:in\n `find\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:78:in\n `handle\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\"\n', `updated_at` = '2016-08-23 16:20:41' WHERE `dispatched_services`.`id` = 10
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mDispatchedService Load (0.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (2.7ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (0.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (1.3ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (7.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (1.7ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (54.7ms)
[1m[36mPermalink Load (0.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (1.0ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 310ms (Views: 241.8ms | ActiveRecord: 8.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2016-08-23 12:20:41 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9026fc2a87e23b9f45c8e81c3b34b6c' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:20:41')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 16:20:41')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 20, '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 20, '2016-08-23 16:20:41')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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=book&author=Smith&title=Some+Book\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c9026fc2a87e23b9f45c8e81c3b34b6c', 'a03fb1fb17f24f5ea845bf6c4450490b', 20, '127.0.0.1', '2016-08-23 16:20:41')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 16:20:41', '2016-08-23 16:20:41')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN010: Invalid PartnershipId. Backtrace:
borrow_direct (1.2.0) lib/borrow_direct/request.rb:103:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:68:in `request_item_request'
borrow_direct (1.2.0) lib/borrow_direct/request_item.rb:90:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in `block in submit_request'
[1m[36mSQL (5.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (1.6ms)[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 (1.4ms)[0m [1mBEGIN[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (1.9ms)[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, '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', '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: \'PUBAN010: Invalid PartnershipId\'\n:backtrace:\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:103:in\n `request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:34:in\n `authentication_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/authentication.rb:42:in\n `get_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:148:in\n `fetch_auth_id!\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request.rb:154:in\n `need_auth_id\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:68:in\n `request_item_request\'\"\n- \"/Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/borrow_direct-1.2.0/lib/borrow_direct/request_item.rb:90:in\n `make_request!\'\"\n- \"/Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:55:in\n `block in submit_request\'\"\n', `updated_at` = '2016-08-23 16:20:41' WHERE `dispatched_services`.`id` = 6
[1m[36m (5.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:20:41' WHERE `dispatched_services`.`id` = 11
[1m[36m (9.6ms)[0m [1mCOMMIT[0m
[1m[35m (2.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.4ms)
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_standard_response_item.html.erb (0.9ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (12.9ms)
[1m[35mPermalink Load (0.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 65ms (Views: 14.2ms | ActiveRecord: 7.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 2016-08-23 12:20:41 -0400
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e571d8f5c66e20d992255dbad6c0a184' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:20:41')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 21, '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 21, '2016-08-23 16:20:41')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 21, '2016-08-23 16:20:41')[0m
[1m[35m (0.5ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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=article&title=foo&author=bar\"\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e571d8f5c66e20d992255dbad6c0a184', 'bc13b80c2923ce2cbe0c8347141587a7', 21, '127.0.0.1', '2016-08-23 16:20:41')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:20:41', '2016-08-23 16:20:41')
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:20:41' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1[0m
[1m[35mDispatchedService Load (0.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (0.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (0.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (14.6ms)
[1m[35mPermalink Load (0.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (1.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m COMMIT
Completed 200 OK in 56ms (Views: 16.2ms | ActiveRecord: 6.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f51e18ac7bd980b271395e50f32ffe0' 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.2ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 22, '2016-08-23 16:20:41')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 22, '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 22, '2016-08-23 16:20:41')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '2f51e18ac7bd980b271395e50f32ffe0', '318e542032e1812e600e07efbdb1dfcc', 22, '0.0.0.0', '2016-08-23 16:20:41')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 22, '2016-08-23 16:20:41', '2016-08-23 16:20:41')[0m
[1m[35m (0.2ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=22" for 127.0.0.1 at 2016-08-23 12:20:41 -0400
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"22"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (0.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_manually_entered_warning.html.erb (2.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (0.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/index.html.erb within layouts/umlaut (13.6ms)
[1m[36mPermalink Load (0.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22[0m
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (3.4ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 27ms (Views: 16.1ms | ActiveRecord: 4.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:20:41 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4046a35a22a212845e5b329cd7aca012' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:41')
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:20:41')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', '4046a35a22a212845e5b329cd7aca012', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:20:41')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (2.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 16:20:41', '2016-08-23 16:20:41')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23)[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (5.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mSQL (0.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', 23, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:20:41')[0m
[1m[35m (4.8ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/error_on_bad_patron_barcode.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 5 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 58ms (ActiveRecord: 4.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:20:41 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (0.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0aa03817ead938caa469ac25eb645726' 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.1ms)[0m BEGIN
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:20:41')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 24, '2016-08-23 16:20:41')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '0aa03817ead938caa469ac25eb645726', '9902a1d22a141a826ae31b1c83cb928c', 24, '127.0.0.1', '2016-08-23 16:20:41')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:20:41', '2016-08-23 16:20:41')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1
[1m[36mReferent Load (0.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
[1m[36mServiceResponse Load (0.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24)
[1m[36mDispatchedService Load (0.2ms)[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[35mSQL (0.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 24, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:20:41')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/non-requestable_ISBN_displays_unavailable_message.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 2 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 37ms (ActiveRecord: 3.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:20:41 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (0.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd614f4a21b3ced034b6eabf24bc56c8d' 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.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:41')
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:20:41')
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 'd614f4a21b3ced034b6eabf24bc56c8d', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 16:20:41')[0m
[1m[35m (0.4ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:20:41', '2016-08-23 16:20:41')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m COMMIT
[1m[36mRequest Load (0.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1[0m
[1m[35mReferent Load (0.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25)
[1m[36mReferentValue Load (0.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)[0m
[1m[35mServiceResponse Load (0.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25)[0m
[1m[35mDispatchedService Load (0.2ms)[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[36mSQL (0.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mSQL (0.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', 25, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:20:41')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/places_request_succesfully.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 4 HTTP interactions that have 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.24.6) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.24.6) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.24.6) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.24.6) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.24.6) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:240:in `block in webmock_responses'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:59:in `do_get'
webmock (1.24.6) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get_block'
httpclient (2.8.0) lib/httpclient.rb:1021:in `block in do_request'
httpclient (2.8.0) lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
httpclient (2.8.0) lib/httpclient.rb:1016:in `do_request'
httpclient (2.8.0) lib/httpclient.rb:858:in `request'
httpclient (2.8.0) lib/httpclient.rb:761:in `post'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:77:in `request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:34:in `authentication_request'
borrow_direct (1.2.0) lib/borrow_direct/authentication.rb:42:in `get_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:148:in `fetch_auth_id!'
borrow_direct (1.2.0) lib/borrow_direct/request.rb:154:in `need_auth_id'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:61:in `find_item_request'
borrow_direct (1.2.0) lib/borrow_direct/find_item.rb:70:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:78:in `handle'
umlaut (4.1.7) app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut (4.1.7) app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 42ms (ActiveRecord: 3.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:20:41 -0400
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (0.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e12d3af0da5b031d28d47bba1250a0f' 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.1ms)[0m BEGIN
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:41')[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:20:41')
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:20:41')[0m
[1m[35m (0.3ms)[0m COMMIT
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', '9e12d3af0da5b031d28d47bba1250a0f', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 16:20:41')
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 26, '2016-08-23 16:20:41', '2016-08-23 16:20:41')
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1
[1m[36mReferent Load (0.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26)[0m
[1m[35mReferentValue Load (0.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)
[1m[36mServiceResponse Load (0.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26)
[1m[36mDispatchedService Load (0.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.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', 26, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2016-08-23 16:20:41')
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://demo.relais-host.com/portal-service/user/authentication
Body: {"ApiKey":"DUMMY_BD_API_KEY","PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","UserGroup":"patron","LibrarySymbol":"DUMMY_BD_LIBRARY_SYMBOL","PatronId":"DUMMY_BD_PATRON"}
VCR is currently using the following cassette:
- /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/test/vcr_cassettes/integration/requestable_ISBN_displays_form.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 2 HTTP interactions that have 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